Talk:OpenGL pixel shader: Difference between revisions

m
→‎Fragment shader compilation errors: Added signature to last comment.
(Added section about fragment shader compilation errors.)
m (→‎Fragment shader compilation errors: Added signature to last comment.)
 
Line 18:
It turned out that the fragment shaders in the C and Go examples which were written years ago were no longer compiling under the current versions of OpenGL/GLSL because they used implicit conversions in the rand() function to convert between integer and float literals. As soon as I added ".0" to the former all three examples ran fine.
 
So I've updated the examples (they should now run under any version) and included code in the Wren example to check for compilation or linker errors to avoid 'silent' failures occurring if the example is ever changed in future. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 14:36, 8 September 2021 (UTC)
9,476

edits