1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-28 12:28:21 +01:00
Diya-API/Diya/GLSimpleShader.class.st
2022-02-13 17:15:23 +01:00

26 lines
374 B
Smalltalk

Class {
#name : #GLSimpleShader,
#superclass : #OpenGLSL,
#category : #'Diya-Shaders'
}
{ #category : #accessing }
GLSimpleShader class >> fragmentShader [
^ '
void main()
{
gl_FragColor = vec4(0.4,0.4,0.8,1.0);
}
'
]
{ #category : #accessing }
GLSimpleShader class >> vertextShader [
^ '
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
'
]