Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glsl: Avoid using uniform initialisers.
Maybe this will help with compatibility, since according to https://www.khronos.org/opengl/wiki/Uniform_(GLSL) “Platform Issue (Unknown): Some drivers do not implement uniform initializers correctly.”
- Loading branch information
Showing
7 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#version 120 | ||
|
||
uniform vec4 color = vec4(1.); | ||
uniform vec4 color; | ||
|
||
|
||
void main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#version 120 | ||
|
||
uniform vec4 color = vec4(1.); | ||
uniform vec4 color; | ||
uniform sampler2D texture; | ||
|
||
varying vec2 uv; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#version 120 | ||
|
||
uniform vec4 color = vec4(1.); | ||
uniform vec4 color; | ||
uniform sampler2D texture; | ||
|
||
varying vec2 uv; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters