You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also would you consider change .label( name ) to .name( name ) ? .name( name ) seems more simple and align with little-gui as well as the current doc in the wiki : .toVar( name = null )
Description
For helping debugging it will be great to add a .name( ... ) so we can do
let opacity = uniform( 0.5 ).name('opacity')
.Currently it seems only varying and var can be name.
Solution
uniform(...).name( name )
texture(...).name( name )
as texture extends uniform it didnt need extra codeAlternatives
.name( name )
also for varying and toVar.NOTE :
let txt = texture( ... ).toVar( name )
is not working as after we cant use it withtxt.sample(...)
for example.Example
This demonstrate the .toVar( .. ) not working with texture(...)
https://jsfiddle.net/4epnsd60/9/
The text was updated successfully, but these errors were encountered: