0 votes

Hi everybody.
I'm in trouble with the Doc's tutorial at this page:
https://docs.godotengine.org/en/3.1/tutorials/3d/vertex_animation/animating_thousands_of_fish.html

It starts throwing errors from the very first line of code: Writing:

float time = TIME * time_scale;

this error is triggered:
error(7): expected '(' after identifier.

I've defined shader_type spatial; in top, should I change the float's declaration format (to sth like: Variant get_shader_param ( String param ) const), or put it inside some "void {}" to make it work?? Thank u in advance.

I think this part of tutorial is not consistent in learning procedure, as It's the first time in Docs that the shader language is used, but is never explained how to (untill future docs about shading). However, at this point, one should be interrupted to start to search about how to implements these codes. I’ve even just watched some youtube videos about shader material but to no avail.

in Engine by (18 points)
recategorized by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.