PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor
Based on D6425 by @robbott Differential Revision: https://developer.blender.org/D6425
This commit is contained in:
parent
50d78116cd
commit
4fa4245464
Notes:
blender-bot
2023-02-14 05:25:44 +01:00
Referenced by issue #81969, UI turns whiteish when playing video sequence based on a scene and moving in the image editor after saving
|
@ -33,11 +33,12 @@ fragment_shader = '''
|
|||
uniform float u_Scale;
|
||||
|
||||
in float v_ArcLength;
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
if (step(sin(v_ArcLength * u_Scale), 0.5) == 1) discard;
|
||||
gl_FragColor = vec4(1.0);
|
||||
FragColor = vec4(1.0);
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
|
@ -23,10 +23,11 @@ fragment_shader = '''
|
|||
uniform float brightness;
|
||||
|
||||
in vec3 pos;
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = vec4(pos * brightness, 1.0);
|
||||
FragColor = vec4(pos * brightness, 1.0);
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
|
@ -56,10 +56,11 @@ fragment_shader = '''
|
|||
uniform sampler2D image;
|
||||
|
||||
in vec2 uvInterp;
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture(image, uvInterp);
|
||||
FragColor = texture(image, uvInterp);
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue