diff options
| author | raysan5 <[email protected]> | 2020-07-28 11:27:05 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-07-28 11:27:05 +0200 |
| commit | 488c60d13945cf1b8f51ff668c5adc7a80e3b734 (patch) | |
| tree | 95687673e026caedd3962caaa47c162bd47e1960 /examples/models | |
| parent | b5eb104b08ed9983b1294d203d06d0141622f92c (diff) | |
| download | raylib-488c60d13945cf1b8f51ff668c5adc7a80e3b734.tar.gz raylib-488c60d13945cf1b8f51ff668c5adc7a80e3b734.zip | |
Small shader fix on vec3 initialization #1298
Diffstat (limited to 'examples/models')
| -rw-r--r-- | examples/models/resources/shaders/glsl330/skybox.fs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/resources/shaders/glsl330/skybox.fs b/examples/models/resources/shaders/glsl330/skybox.fs index 0ce8aed7..c7a17883 100644 --- a/examples/models/resources/shaders/glsl330/skybox.fs +++ b/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; |
