gunship-rs icon indicating copy to clipboard operation
gunship-rs copied to clipboard

Allow materials to specify default values for properties

Open randomPoison opened this issue 8 years ago • 0 comments

Currently material properties default to the default value for their type. While this is sometimes fine, there are cases where the default value doesn't work or their is a more reasonable default value for the property. For these cases it would be better if an alternate default value could be specified in the shader, e.g.:

property surface_color: Color = (1.0, 0.0, 0.0, 1.0);
poperty shininess: f32 = 4.0;

randomPoison avatar Nov 28 '16 15:11 randomPoison