pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

Lighting shader & host uniform control #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Must be implemented. Use examples shader code.

Original issue reported on code.google.com by SkewMat...@gmail.com on 8 Jun 2013 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by abry...@gmail.com on 17 Jun 2013 at 8:46

GoogleCodeExporter commented 9 years ago
FFP lighting with per-pixel enhancement added to jagmodel.

Currently there is a bug with how CommandMap and UniformBlockSet work together 
that causes light parameters to be dropped when material parameters are 
specified. Currently working around this in the OSG plugin by specifying light 
and material parameters together, but this should not be necessary, is 
impacting performance, and needs to be fixed.

Solution will probably require at least a redesign of all the *Set DrawablePrep 
classes, with a mod to CommandMap. And it might require a redesign of 
CommandMap itself.

Original comment by SkewMat...@gmail.com on 23 Aug 2013 at 7:04

GoogleCodeExporter commented 9 years ago
Atomic lighting shaders are now in use by the jagmodel example. This example 
sets default uniform blocks containing light and material values. The OSG model 
plugin has been modified to create a uniform block from the model's materials.

Original comment by SkewMat...@gmail.com on 12 Sep 2013 at 4:49