Commit Graph

20 Commits

Author SHA1 Message Date
rdb 9ba2d7242e gobj: get rid of enforce-attrib-lock, just DTRT instead
This setting causes asserts when modifying certain material flags after they are assigned to a node, in case a shader has been generated that uses the materials, which cannot efficiently detect whether the material has changed.  However, we already sort of have a (inefficient, but effective) solution for this in TextureStage (see #178) that we could just apply here as well: changing the material attributes after such a shader has been generated could call GraphicsStateGuardianBase::mark_rehash_generated_shaders().

In the future, we should replace the material model with one that does not require shader regeneration for such seemingly trivial property changes.

Fixes #370
2018-08-03 21:55:06 +02:00
Sam Edwards 7790f8429d general: Fully qualify header references into the std namespace
Closes #341
2018-06-07 10:35:12 +02:00
rdb f79fbf25c3 ShaderGenerator: big overhaul, don't generate more shaders than needed 2017-07-10 21:55:27 +02:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb becd0aa416 Return diffuse color for get_base_color if neither base color nor metallic have been specified 2016-01-11 18:23:52 +01:00
rdb 3393454582 Metalness workflow PBR stuff, support light color temperatures, make light specular color tied to light color by default 2016-01-09 16:08:33 +01:00
rdb ffabf6925c Add roughness and metallic material parameters for PBR 2015-12-27 23:44:35 +01:00
David Rose 501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
Josh Yelon 5917243378 Added material attrib lock 2008-05-02 00:57:51 +00:00
Josh Yelon 7625c2cfa2 Added a fast function to obtain the default material 2008-01-25 03:28:17 +00:00
David Rose cf01ef9cd6 add NodePath::find_material(), find_all_texcoords(), etc. Make Material be directly modifiable. 2006-01-15 06:34:33 +00:00
David Rose a2eb3859cb color-scale-via-lighting 2005-05-05 18:19:41 +00:00
David Rose e6fb16576b fix directx indexing, lighting 2005-04-16 03:25:55 +00:00
David Rose 843c0331ae update license, change remaining local #includes to use quotation marks 2004-02-13 19:27:33 +00:00
David Rose 2f4e207edb Update copyright header 2001-05-25 21:27:38 +00:00
David Rose 82b0ce0d37 *** empty log message *** 2001-05-11 23:18:38 +00:00
David Rose 98a4f21207 *** empty log message *** 2001-05-01 05:45:56 +00:00
David Rose 7f23c901a5 *** empty log message *** 2001-05-01 02:18:22 +00:00
David Rose 2fd714e52f Initial revision 2000-10-04 01:14:41 +00:00