This website requires JavaScript.
Explore
Help
Register
Sign in
mirrors
/
mkxp-z
Watch
1
Star
0
Fork
You've already forked mkxp-z
0
mirror of
https://github.com/mkxp-z/mkxp-z.git
synced
2025-07-04 23:55:17 +02:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
1
3ffad8c05f
mkxp-z
/
shader
/
simpleColor.frag
8 lines
70 B
GLSL
Raw
Normal View
History
Unescape
Escape
Remove the remaining bits of deprecated GL usage The drawing is now completely shader based, which makes away with all usage of the depracted matrix stack. This also allows us to do things like simple translations and texture coordinate translation directly instead of doing everything indirectly through matrices. Fixed vertex attributes ('vertexPointer()' etc) are also replaced with user defined attribute arrays.
2013-09-23 07:15:01 +02:00
Shader: Refine preprocessing on GLES platform Don't globally set float precision to mediump, only fragment shaders need that and defining it for vertex shaders causes tilemap cracks. Also manually define low precision for variables that hold color / alpha values.
2014-12-23 18:33:33 +01:00
varying
lowp
vec4
v_color
;
Remove the remaining bits of deprecated GL usage The drawing is now completely shader based, which makes away with all usage of the depracted matrix stack. This also allows us to do things like simple translations and texture coordinate translation directly instead of doing everything indirectly through matrices. Fixed vertex attributes ('vertexPointer()' etc) are also replaced with user defined attribute arrays.
2013-09-23 07:15:01 +02:00
void
main
(
)
{
gl_FragColor
=
v_color
;
}
Reference in a new issue
Copy permalink