Graphics.ExcludeAModelFromCastingShadows - lordmundi/wikidoctest GitHub Wiki

Exclude a Model from Casting Shadows

« Exclude A Model From A View | EDGE User’s Guide | Running Fullscreen »

The easiest way to exclude a model from casting shadows is by excluding a node in the "DSP_SPEEDTEST → EXCLUDE_FROM_SHADOWING" block.

Node Exclusion

The recommended way to do this is to make a new config file to hold your extra speedtest settings (if you don't already have one) in your $USERDATA/configs/ directory. That file would look something like this:

DSP_SPEEDTEST
{
    EXCLUDE_FROM_SHADOWING
    {
        *_CONE
        *_AXES
    }
}

As you can see, the node listing in that block can also include a wildcard character. In this case, any nodes that end in the string "_CONE" or "_AXES" will not cast shadows. It should be noted that shadows will still be cast upon them however.

Material Exclusion

Another way you could do this if the items you want to exclude are not nodes, is to exclude a specific material from casting shadows. This is done in the "DSP_SPEEDTEST → MATERIAL_TEXTURES" block. You can see examples of this and all of the possible field definitions in $EDGE_HOME/configs/speedy.cfg. Check out the comments in that file. This will allow you to define material settings anywhere a particular texture name is used on a model and in those material settings, one of the possible fields is "disable(shadows)". Again, see speedy.cfg for more details.