Skip to content

Invalid shader is generated when refraction is enabled without metalness #7514

@mvaligursky

Description

@mvaligursky

Refraction (both cubemap and dynamic) can only be used with metalness. Otherwise we get shader compilation errors. Ideally this should work as well, or at least force useMetalness perhaps.

Note that this issues exist and can be reproduce both in engine V2 and V1.

Repros:

  1. engine example Material-refraction, just comment out 'material.useMetalness = true;'
  2. Editor. Create a new material, open Refraction section, and set Refraction value to non-zero.
Image

related to #7513

Metadata

Metadata

Assignees

Labels

area: graphicsGraphics related issuebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions