Shadowing for Static meshes #9
-
Would it be possible to support shadow casting on other static meshes that use GT_DefaultLit? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @shukenmg, this is a great question. Unfortunately when a material's "Shading Model" property is marked as "Unlit" Unreal's renderer doesn't calculate any static (or dynamic) shadow casting for that mesh. Which makes sense in context. To circumvent this there are a few options you can try:
|
Beta Was this translation helpful? Give feedback.
Hi @shukenmg, this is a great question. Unfortunately when a material's "Shading Model" property is marked as "Unlit" Unreal's renderer doesn't calculate any static (or dynamic) shadow casting for that mesh. Which makes sense in context. To circumvent this there are a few options you can try:
You could mark the material as "Default Lit" and "Fully Rough" and delete the "GT_DefaultLit" method. This makes a material that is cheap to render, and can cast/receive shadows. But... does not support any specular or environment reflections.
In the above example if the book and table are static in respect to each other you could bake shadows into the albedo texture(s) in another tool. Similar t…