Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shading Language : Godot Alpha 7 Unknown identifier #60605

Closed
Berkru opened this issue Apr 29, 2022 · 1 comment
Closed

Shading Language : Godot Alpha 7 Unknown identifier #60605

Berkru opened this issue Apr 29, 2022 · 1 comment

Comments

@Berkru
Copy link

Berkru commented Apr 29, 2022

Godot version

4.0 alpha 7

System information

ubuntu 21.10

Issue description

on the shader code:
MODELVIEW_MATRIX = INV_CAMERA_MATRIX * mat4(CAMERA_MATRIX[0],WORLD_MATRIX[1],vec4(normalize(cross(CAMERA_MATRIX[0].xyz,WORLD_MATRIX[1].xyz)), 0.0),WORLD_MATRIX[3]);

INV_CAMERA_MATRIX returns a error :
error(19): Unknown identifier in expression: 'INV_CAMERA_MATRIX'.

Steps to reproduce

just try to use the shader I upload below.

Minimal reproduction project

grass.gdshader.zip

@Chaosus
Copy link
Member

Chaosus commented Apr 29, 2022

INV_CAMERA_MATRIX has been renamed to VIEW_MATRIX, as well as a WORLD_MATRIX (see #59268)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants