Skip to content

Commit

Permalink
feat: update shader materials
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan committed Nov 1, 2024
1 parent 857a5e8 commit 19a9f03
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
$string type "float"
$string name "rim_amount"
$float default "0.716"
$float min 0.0
$float max 1.0
},
{
$string type "vec3"
Expand All @@ -22,20 +24,25 @@
$string type "float"
$string name "glossiness"
$float default "8.0"
$float min 0.0
$float max 20.0
}
]
$array textures [element][
{
$string name "albedo_map"
$bool colorMap 1
$bool required 1
$string specializationType "albedo"
},
{
$string name "normal_map"
$string specializationType "normal"
},
{
$string name "matcap_map"
$string default "white"
$string default "matcap"
$string specializationType "matcap"
}
]
}
14 changes: 14 additions & 0 deletions assets/scripts/shader_data/materials/pbr.udm
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,56 @@
{
$string type "float"
$string name "phong_intensity"
$bool hideInEditor 1
$float default 1.0
$float min 0.0
$float max 1.0
},
{
$string type "float"
$string name "metalness_factor"
$float default 0.0
$float min 0.0
$float max 1.0
},
{
$string type "float"
$string name "roughness_factor"
$float default 0.5
$float min 0.0
$float max 1.0
},
{
$string type "float"
$string name "ao_factor"
$float default 1.0
$float min 0.0
$float max 1.0
}
]
$array textures [element][
{
$string name "albedo_map"
$bool colorMap 1
$bool required 1
$string specializationType "albedo"
},
{
$string name "normal_map"
$string specializationType "normal"
},
{
$string name "rma_map"
$string specializationType "rma"
},
{
$string name "emission_map"
$string default "white"
$string specializationType "emission"
},
{
$string name "parallax_map"
$string specializationType "parallax"
},
{
$string name "wrinkle_stretch_map"
Expand Down

0 comments on commit 19a9f03

Please sign in to comment.