Skip to content

Commit

Permalink
Fix custom material glsl example using incorrect CameraViewProj (#3962)
Browse files Browse the repository at this point in the history
# Objective

The `custom_material.vert` shader used by the `shader_material_glsl` example is missing a `mat4 View` in `CameraViewProj` (added in [#3885](#3885))

## Solution

Update the definition of `CameraViewProj`
  • Loading branch information
mcobzarenco committed Feb 16, 2022
1 parent 936468a commit b0768a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/shaders/custom_material.vert
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ layout(location = 2) in vec2 Vertex_Uv;

layout(set = 0, binding = 0) uniform CameraViewProj {
mat4 ViewProj;
mat4 View;
mat4 InverseView;
mat4 Projection;
vec3 WorldPosition;
Expand Down

0 comments on commit b0768a5

Please sign in to comment.