1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-30 21:38:22 +01:00
Diya-API/Diya/DiyaDefaultShader.class.st
2022-03-01 22:58:58 +01:00

29 lines
431 B
Smalltalk

Class {
#name : #DiyaDefaultShader,
#superclass : #OpenGLSL,
#category : #'Diya-Shaders'
}
{ #category : #accessing }
DiyaDefaultShader class >> fragmentShader [
^ '
#ifdef GL_ES
precision mediump float;
#endif
void main()
{
gl_FragColor = vec4(1.0,1.0,1.0,1.0);
}
'
]
{ #category : #accessing }
DiyaDefaultShader class >> vertextShader [
^ '
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
'
]