cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Materials should warn if the mesh does not satify its requirements

Open shrinktofit opened this issue 3 years ago • 2 comments

I generated a line (through utils.createMesh with only positions and vertex colors) then rendered it with the standard effect. The use vertex color was enabled and the primitive mode was set to line. However the line was always rendered in white.

@jk20012001 indicates that meshes pass to standard effect should have normal correctly configured.

I wonder if it'd better warning on such mistake.

Test.zip

shrinktofit avatar Apr 01 '22 06:04 shrinktofit

@star-e Please take look at this

SantyWang avatar Jul 09 '22 06:07 SantyWang

Might be improved in 3.8.5.

star-e avatar Aug 14 '24 05:08 star-e