Skip to content

Fix incorrect normals of two-sided materials; optional define to disable#159

Draft
piespy wants to merge 3 commits intoray-cast:devfrom
piespy:two-sided-materials
Draft

Fix incorrect normals of two-sided materials; optional define to disable#159
piespy wants to merge 3 commits intoray-cast:devfrom
piespy:two-sided-materials

Conversation

@piespy
Copy link
Copy Markdown

@piespy piespy commented Sep 21, 2025

Use VFACE pixel shader semantic to determine which side of a two-sided material is drawn, and adjust normal vector. This allows e.g. lighting to apply to both sides.

Define MATERIAL_SINGLESIDE in a material file to disable this.

…ble this

Use VFACE pixel shader semantic to determine which side of a two-sided material is drawn, and adjust normal vector. This allows e.g. lighting to apply to both sides.

Define MATERIAL_SINGLESIDE in a material file to disable this.
Use VFACE pixel shader semantic to determine which side of a two-sided material is drawn, and adjust normal vector. This allows e.g. lighting to apply to both sides.

Define MATERIAL_SINGLESIDE in a material file to disable this.
…ble this

Use VFACE pixel shader semantic to determine which side of a two-sided material is drawn, and adjust normal vector. This allows e.g. lighting to apply to both sides.

Define MATERIAL_SINGLESIDE in a material file to disable this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant