mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-01-02 14:38:22 +01:00
29 lines
431 B
Smalltalk
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;
|
||
|
}
|
||
|
'
|
||
|
]
|