cinnaboot
da31d5c1c0
add ambient_color to the LightsBuffer structure
4 years ago
cinnaboot
70458f248a
allow entities to have empty diffuse texture
...
this is needed when we want to programatticaly create meshes for use
with, eg) the colored_vertices shader.
4 years ago
cinnaboot
7ad8cadb77
add note about LightsBuffer being fragile if changed
4 years ago
cinnaboot
2919e2bcb6
add data size parameter to GLBuffer
4 years ago
cinnaboot
5bc2fd2c59
change the way we store the LightsBuffer data to better fit openGL
...
previously, we trying to store the 'header' for LightsBuffer as flat
data types in cpp. This gave an incorrect offset because the pointers
for the array data were also included in the 'buffer'. Now we've got a
new pointer, 'buffer', and all the fields in the header are pointers
into the buffer address space, so we can align everything properly
4 years ago
cinnaboot
f166fcfe76
add getRenderGroupByName helper
4 years ago
cinnaboot
05f76e8efd
fix bug setting the wrong address offset in initLights()
...
the first offset should have been the entire size of the 'header', aka)
the LightsBuffer structure
4 years ago
cinnaboot
54c65d1745
implement buffer backed lighting uniform structure
5 years ago
cinnaboot
d0bbd641c8
zero initialize remaining variables in LightsBuffer
5 years ago
cinnaboot
f23ae1247e
add a LightsBuffer structure for use in shader programs
5 years ago
cinnaboot
09de3eeca8
remove duplicate initGLContext declaration
5 years ago
cinnaboot
79b20bb6b0
load a dummy shader to init GLContext limits
...
This solves a chicken and egg problem when loading shaders that need to
know about GLContext limits.
Also moved initGLContext() from tangerine.cpp to shader.cpp
5 years ago
cinnaboot
351f179bba
rename instances of GLmesh to GLMesh
5 years ago
cinnaboot
3c9b7c9376
add full lighting shader with debug values
5 years ago
cinnaboot
8d0f3be381
rename instances of model_matrix to node_matrix
...
model matrix is the transform that should be applied at the entity
level. Anything with and entity as parent should be transformed with a
node matrix
5 years ago
cinnaboot
9f94c153f8
rename structures in asset.h to consistent style
5 years ago
cinnaboot
99db662ac5
rename data structure in shader.h to consistent style
5 years ago
cinnaboot
2461e499ee
replace instances of printf with new logging macro
5 years ago
cinnaboot
41b4ed4d6d
set up the attrib mappings for the default shaders automatically
5 years ago
cinnaboot
54a68455cc
reorder tangerine.h interface into logical groups
5 years ago
cinnaboot
5c3760eab2
clean up renderer initialization, and loop interface
...
Now we match the style of libTangerine where we pass in callbacks to a
doRenderLoop function, and handle SDL calls internally
5 years ago