cinnaboot
fccc3e0cee
change FIXME about copying GLMesh to TODO
...
this is not really a priority, since the current implementation is
working
4 years ago
cinnaboot
8f77e33f33
use rg_arena for storing GLMesh buffers
4 years ago
cinnaboot
da31d5c1c0
add ambient_color to the LightsBuffer structure
4 years ago
cinnaboot
7b8d7a72a7
remove unused variables in colored_vertices shader
4 years ago
cinnaboot
39cc17db68
remove fixed properties of ShaderProgram in favor of dynamic properties
...
this makes use of our dynamic shader parsing code, so we don't need to
track these properties explicitly any more.
4 years ago
cinnaboot
a4c22aee1b
remove duplicate code that deletes shaders after loading
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
b790990109
test an entity with multiple meshes
4 years ago
cinnaboot
1d7c0be9ab
update main TODO list
4 years ago
cinnaboot
613ded9b4e
switch to SDL_LoadFile for reading shader sources
4 years ago
cinnaboot
c0f33a51e7
add include guards to GLDebug.h
4 years ago
cinnaboot
7ad8cadb77
add note about LightsBuffer being fragile if changed
4 years ago
cinnaboot
ed9b42854e
remove FIXME about buf_type
4 years ago
cinnaboot
48556e6c2b
use new utilCStrMatch function instead of hashing
4 years ago
cinnaboot
a79c8f412b
remove fixme about generic interface function we just added
4 years ago
cinnaboot
a44971ae40
add updateGLBuffer as generic helper
4 years ago
cinnaboot
63dceb6cdf
initialize GLBuffer members to sane defaults at creation
4 years ago
cinnaboot
0fcaa473de
remove data_size parameter from GLUniform
4 years ago
cinnaboot
2919e2bcb6
add data size parameter to GLBuffer
4 years ago
cinnaboot
90a3fe7bad
update example appliction to use the recent LightsBuffer changes
4 years ago
cinnaboot
efa111ae85
add orbit helper function in main.cpp
4 years ago
cinnaboot
6a6ab6eadf
update main TODO in tangerine.h
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
c144442eed
add extra assertion for name_len in arenaCopyCStr
4 years ago
cinnaboot
4bec420d4f
remove defaults for initTransforms()
4 years ago
cinnaboot
f166fcfe76
add getRenderGroupByName helper
4 years ago
cinnaboot
b2c839b815
correct setEntityPosition helper function
4 years ago
cinnaboot
28e77fd9af
re-implement full_lighting shader point lights
4 years ago
cinnaboot
25e4498e86
add a utilCStrMatch helper
...
this checks both the length of a cstr, and if the strings match. an
improvement over checking with std::strncmp(), which could match two
strings where one matched the prefix of the other
4 years ago
cinnaboot
92411decf2
add getUBOByName 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
f52a905575
remove FIXME in full_lighting.frag
5 years ago
cinnaboot
6ca1e919f8
add TODO about sorting uniform buffers
5 years ago
cinnaboot
a490303c23
change assertion to boolean return in parseUniformBlocks
5 years ago
cinnaboot
f537673ea2
track arena free size when allocating blocks
5 years ago
cinnaboot
c999f408b1
add arenaGetAddressOffset helper
5 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
a3b86b77c1
add FIXME for cleaning up shader after linking
5 years ago
cinnaboot
cd74503d5f
check for valid block binding in parseUniformBlocks
5 years ago
cinnaboot
783f4427bc
clean up initTransforms() a bit
5 years ago
cinnaboot
01cb752a70
add matching lights structure in test shader
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
3993fe4129
add updateCamerTransforms helper function
5 years ago
cinnaboot
72607666a8
add getFreeUBO helper function
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
5948f7b2e0
add some notes and skeleton for scene abstraction
5 years ago
cinnaboot
52dc91dad4
set GLVertexAttrib.buf_type when loading a GLMesh
5 years ago