stfexp.light

[ Schema | Category: Instance ]

A real-time rendering friendly light-source. It can represent pointlights, directional lights & spotlights.

Implementations

Blender

bpy.types.Object with bpy.types.Light

Godot

Light3D

Unity

Light

Properties

type

required Constant: "stfexp.light"

light_type

required Enum: "point" | "directional" | "spot"

brightness

required Type: number

color

required Type: array<number>

temperature

optional Type: number

If set, the color will be used as the tint

shadow

optional Type: boolean

Default: True

Whether this light casts shadows

range

optional Type: number

The range of point or spot type lights.

spot_angle

optional Type: number

The angle of the light cone for spot type lights

Json Example

"e21e75ef-fc71-4970-b127-47873b09ce90": {
	"type": "stfexp.light",
	"name": "",
	"light_type": "spot",
	"range": 8.0,
	"spot_angle": 1.3089969158172607,
	"brightness": 1000.0,
	"color": [
		1.0,
		0.046901725232601166,
		0.6305924654006958
	],
	"temperature": 6500.0,
	"shadow": true
},