Skip to content

Equivalent of gl_FragDepth writing in TSL ? Equivalent of the customDepthMaterial in TSL ? #31936

@Samsy

Description

@Samsy

Description

Hey hello there,

I've tried many things, and looked at the wiki and examples

Been quite confused with the depthNode and what would be a default content for a depthNode

Is the depthNode assigning new value map for the projected shadow calculations ? or it is assigning a new value for a gl_FragDepth ?

If it is assigning a gl_FragDepth, does it handle both webGL and webGPU in their different range ?

Wondering how to do both

Some of the nodes are really confusing because it does not come with a default example of what would be the default content for a node ( I think about normalNode, depthNode, receivedShadowPositionNode, etc.. )

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionTSLThree.js Shading Language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions