Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Cocos2d: warning: Uniform not found: u_color

$
0
0

@steph wrote:

Playing with shaders, in cocos 3.13.1 JS, i see millions of that lines in console, regardless of the platform (osx,android and ios).

cocos2d: warning: Uniform not found: u_color

Can i get rid of this somehow?

what i tired so far:
shader.setUniformFloat("u_color", ....)

or in vertex shader:
uniform float u_color;

nothing seems to work, somehow i am afraid that this logging would cost performance, or that that what leads to this logging could be avoided, to save cycles.

Any ideas? Thank you in advance,
steff

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2748

Latest Images

Trending Articles



Latest Images