vrm-specification icon indicating copy to clipboard operation
vrm-specification copied to clipboard

Lit Shader support?

Open alienself opened this issue 3 years ago • 2 comments

Hi there,

I would like to know if there are any plans to support Lit shaders. It seems like the current format is heavily bias toward anime avatars using toon shading. What happens if I want my avatar to be influenced by light?

Thanks!

alienself avatar Mar 01 '22 16:03 alienself

You can use glTF's PBR materials without any extensions. https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-material

p.s. VRMC_materials_mtoon extension defines as the lit shaded toon material.

Santarh avatar Mar 02 '22 06:03 Santarh

You can use PBR material that glTF supports in VRM.

for VRM 0.0,

You can set USE_GLTF_SHADERS to /extensions/VRM/materialProperties/{i}/shader to use materials that glTF supports.

for VRM1.0,

if you don't use VRMC_materials_mtoon extension to a material that would be assumed as an ordinary glTF PBR shader.

0b5vr avatar Mar 02 '22 06:03 0b5vr