Skip to content

Spline "Physical" material shader not compiled in three@0.157 #21

@pierusan

Description

@pierusan

When I create a new Spline scene, add a cube, and change its material lighting from Phong to Physical, the exported r3f Scene will not render. The error message in the console says:

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

ERROR: 0:1255: 'geometryNormal' : undeclared identifier
ERROR: 0:1255: 'geometryNormal' : undeclared identifier
ERROR: 0:1255: '=' : dimension mismatch
ERROR: 0:1255: '=' : cannot convert from 'highp float' to 'highp 3-component vector of float'

Spline scene with cube: https://my.spline.design/bugpbr-697c24bb953fb9261036866a8faaeb80/

Codesandbox with the error: https://codesandbox.io/s/r3f-spline-pbr-bug-7d2mgc

In the sandbox I also added a Scene1 component, which is the scene from the Spline demo referenced in the Readme. If you render Scene1 instead of Scene2, you'll also see that the demo suffers from shader issues with three@0.157.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions