Browse Source

Small shader fix on vec3 initialization #1298

raysan5 5 năm trước cách đây
mục cha
commit
488c60d139
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/models/resources/shaders/glsl330/skybox.fs

+ 1 - 1
examples/models/resources/shaders/glsl330/skybox.fs

@@ -23,7 +23,7 @@ out vec4 finalColor;
 void main()
 {
     // Fetch color from texture map
-    vec3 color = { 0.0 };
+    vec3 color = vec3(0.0);
 
     if (vflipped) color = texture(environmentMap, vec3(fragPosition.x, -fragPosition.y, fragPosition.z)).rgb;
     else color = texture(environmentMap, fragPosition).rgb;