big rendering overhaul (cleaning and api abstraction)
This commit is contained in:
@ -213,18 +213,6 @@
|
||||
{ "name": "textures", "type": "char *", "default": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"draw_fog": {
|
||||
"module": "draw",
|
||||
"symbol": "fog",
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "start", "type": "float", "default": 0 },
|
||||
{ "name": "end", "type": "float", "default": 1 },
|
||||
{ "name": "density", "type": "float", "default": 0 },
|
||||
{ "name": "color", "type": "Color", "default": { "r": 255, "g": 255, "b": 255, "a": 255 } }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
"types": {
|
||||
@ -269,6 +257,10 @@
|
||||
"fields": [
|
||||
{ "name": "frame_number", "type": "float" },
|
||||
{ "name": "frame_duration", "type": "float" },
|
||||
{ "name": "fog_start", "type": "float" },
|
||||
{ "name": "fog_end", "type": "float" },
|
||||
{ "name": "fog_density", "type": "float" },
|
||||
{ "name": "fog_color", "type": "Color" },
|
||||
{ "name": "resolution", "type": "Vec2" },
|
||||
{ "name": "mouse_position", "type": "Vec2" },
|
||||
{ "name": "mouse_movement", "type": "Vec2" },
|
||||
|
Reference in New Issue
Block a user