Skip to content

Commit

Permalink
[Bug] fix shadowmap material (cocos#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
gameall3d authored Nov 25, 2020
1 parent 22468ab commit 9d412d0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 92 deletions.
34 changes: 4 additions & 30 deletions assets/cases/shadow-map/cocos/body-instanced.mtl
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,8 @@
"USE_PBR_MAP": true,
"USE_EMISSIVE_MAP": true
},
{
"USE_INSTANCING": true,
"USE_NORMAL_MAP": true,
"HAS_SECOND_UV": true,
"USE_ALBEDO_MAP": true,
"USE_PBR_MAP": true,
"USE_EMISSIVE_MAP": true,
"USE_ALPHA_TEST": true
},
{
"USE_INSTANCING": true
}
{},
{}
],
"_states": [
{
Expand All @@ -38,24 +28,8 @@
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
{},
{}
],
"_props": [
{
Expand Down
34 changes: 4 additions & 30 deletions assets/cases/shadow-map/cocos/body.mtl
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,8 @@
"USE_PBR_MAP": true,
"USE_EMISSIVE_MAP": true
},
{
"USE_NORMAL_MAP": true,
"USE_ALBEDO_MAP": true,
"ALBEDO_UV": "v_uv1",
"PBR_UV": "v_uv1",
"USE_PBR_MAP": true,
"USE_EMISSIVE_MAP": true
},
{
"USE_ALBEDO_MAP": true,
"ALBEDO_UV": "v_uv1"
}
{},
{}
],
"_states": [
{
Expand All @@ -37,24 +27,8 @@
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
{},
{}
],
"_props": [
{
Expand Down
16 changes: 10 additions & 6 deletions assets/cases/shadow-map/cocos/helmet-instanced.mtl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"USE_INSTANCING": true,
"USE_NORMAL_MAP": true,
"USE_ALBEDO_MAP": true,
"USE_PBR_MAP": true,
"OCCLUSION_CHANNEL": "b",
"METALLIC_CHANNEL": "r"
}
"USE_PBR_MAP": true
},
{},
{}
],
"_states": [
{
Expand All @@ -26,7 +26,9 @@
},
"depthStencilState": {},
"rasterizerState": {}
}
},
{},
{}
],
"_props": [
{
Expand All @@ -39,6 +41,8 @@
"pbrMap": {
"__uuid__": "83f22f4a-e661-420e-9d43-f855964e22d3@6c48a"
}
}
},
{},
{}
]
}
30 changes: 4 additions & 26 deletions assets/cases/shadow-map/cocos/helmet.mtl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@
"USE_ALBEDO_MAP": true,
"USE_PBR_MAP": true
},
{
"USE_NORMAL_MAP": true,
"USE_ALBEDO_MAP": true,
"USE_PBR_MAP": true
},
{
"USE_ALBEDO_MAP": true
}
{},
{}
],
"_states": [
{
Expand All @@ -32,24 +26,8 @@
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
{},
{}
],
"_props": [
{
Expand Down

0 comments on commit 9d412d0

Please sign in to comment.