mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
3 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue