You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-Initial working(?) implementation of shaders for 2D. Lighting still not there though.
Check for reference: https://github.com/okamstudio/godot/wiki/shader
This commit is contained in:
@@ -1127,11 +1127,13 @@ const ShaderLanguage::BuiltinsDef ShaderLanguage::ci_vertex_builtins_defs[]={
|
||||
};
|
||||
const ShaderLanguage::BuiltinsDef ShaderLanguage::ci_fragment_builtins_defs[]={
|
||||
|
||||
{ "SRC_COLOR", TYPE_VEC4},
|
||||
{ "POSITION", TYPE_VEC4},
|
||||
{ "NORMAL", TYPE_VEC3},
|
||||
{ "UV", TYPE_VEC2},
|
||||
{ "COLOR", TYPE_VEC4},
|
||||
{ "TEXTURE", TYPE_TEXTURE},
|
||||
{ "TEXTURE_PIXEL_SIZE", TYPE_VEC2},
|
||||
{ "VAR1", TYPE_VEC4},
|
||||
{ "VAR2", TYPE_VEC4},
|
||||
{ "SCREEN_UV", TYPE_VEC2},
|
||||
|
||||
Reference in New Issue
Block a user