Skip to main content

Editor.Components.ShadowType

Enum

Enum specifying shadow rendering technique for light sources.

Index

Enumeration Members

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;

// Create a LightSource and enable shadow mapping
const obj = scene.createSceneObject('ShadowLight');
const light = obj.addComponent('LightSource');
light.lightType = Editor.Components.LightType.Directional;
light.shadowType = Editor.Components.ShadowType.ShadowMap;
light.shadowDensity = 0.8;
console.log(`shadowType: ${light.shadowType}`);

Enumeration Members

None

None: number

No shadows rendered.


Projective

Projective: number

Shadows rendered using projective shadow mapping.


ShadowMap

ShadowMap: number

Shadows rendered using shadow map technique.