Skip to content

Commit b0768a5

Browse files
committed
Fix custom material glsl example using incorrect CameraViewProj (#3962)
# 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`
1 parent 936468a commit b0768a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/shaders/custom_material.vert

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ layout(location = 2) in vec2 Vertex_Uv;
66

77
layout(set = 0, binding = 0) uniform CameraViewProj {
88
mat4 ViewProj;
9+
mat4 View;
910
mat4 InverseView;
1011
mat4 Projection;
1112
vec3 WorldPosition;

0 commit comments

Comments
 (0)