Skip to content

DepthNode no longer works in conjunction with the OutputNode in r173. The cause are OutputNode changes in #30394 #30476

@Spiri0

Description

@Spiri0

Description

I have a codePen in which I use logarithmicDepth. This worked so far without any problems with the outputStruct node. Since r173 I have been getting the following error message in connection with the depthNode

index.html:1 Error while parsing WGSL: :56:2 error: struct member depth not found
  output.depth = ( log2( ( ( - ( - vDepth ) ) / nodeVar0 ) ) / log2( ( render.cameraFar / nodeVar0 ) ) );

I have installed a switch in the codePen example with which you can switch between the colorNode and the outputNode:
In line 106:

const testSwitch = 0;

I'm currently trying to understand what has changed in r173 so that the outputNode no longer works with the depthNode, but maybe the one who made the changes knows immediately what's going on.

Reproduction steps

Simply set the testSwitch from 0 to 1 in the codePen so that the outputNode is used.

Code

see in live example link

Live example

https://codepen.io/Spiri0/pen/vYqpRga?editors=1010

Screenshots

No response

Version

173

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions