mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Tweak the default SpatialMaterial properties
Roughness is now set to 1 by default and albedo is now white, even on meshes that do not have any materials defined. This means there is no longer a visual difference between a mesh with no materials defined and a mesh with a default SpatialMaterial defined.
This commit is contained in:
parent
619ba76f46
commit
31c12f05c4
3 changed files with 52 additions and 52 deletions
|
|
@ -339,7 +339,7 @@ void main() {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
float roughness=0.0;
|
||||
float roughness = 1.0;
|
||||
|
||||
//defines that make writing custom shaders easier
|
||||
#define projection_matrix local_projection
|
||||
|
|
@ -1608,18 +1608,18 @@ void main() {
|
|||
|
||||
//lay out everything, whathever is unused is optimized away anyway
|
||||
highp vec3 vertex = vertex_interp;
|
||||
vec3 albedo = vec3(0.8,0.8,0.8);
|
||||
vec3 albedo = vec3(1.0);
|
||||
vec3 transmission = vec3(0.0);
|
||||
float metallic = 0.0;
|
||||
float specular = 0.5;
|
||||
vec3 emission = vec3(0.0,0.0,0.0);
|
||||
vec3 emission = vec3(0.0);
|
||||
float roughness = 1.0;
|
||||
float rim = 0.0;
|
||||
float rim_tint = 0.0;
|
||||
float clearcoat=0.0;
|
||||
float clearcoat_gloss=0.0;
|
||||
float anisotropy = 1.0;
|
||||
vec2 anisotropy_flow = vec2(1.0,0.0);
|
||||
float clearcoat = 0.0;
|
||||
float clearcoat_gloss = 0.0;
|
||||
float anisotropy = 0.0;
|
||||
vec2 anisotropy_flow = vec2(1.0, 0.0);
|
||||
|
||||
#if defined(ENABLE_AO)
|
||||
float ao=1.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue