Skip to content

Scene Lights in ShaderMaterial #1573

Description

@donny-dont

I was wondering if its possible to access the properties of lights in the scene within a ShaderMaterial. I'm working on a toon shader in GLSL and wanted to use the lights in the same manner as the default shaders.

Is there any special mechanism to do this or does one just declare the uniforms using the same names as the built in shaders?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions