[]Laya中使用shader的问题

Laya中使用shader的教程太过简单。
能否有更详细一些的说明?


比如MultiPass如何设置等?各种着色器的输入定义,比如:
uniform vec3 iResolution; // viewport resolution (in pixels) 
uniform float iGlobalTime; // shader playback time (in seconds) 
uniform float iTimeDelta; // render time (in seconds) 
uniform int iFrame; // shader playback frame 
uniform float iChannelTime[4]; // channel playback time (in seconds) 
uniform vec3 iChannelResolution[4]; // channel resolution (in pixels) 
uniform vec4 iMouse; // mouse pixel coords. xy: current (if MLB down), zw: click uniform samplerXX 
iChannel0..3; // input channel. XX = 2D/Cube 
uniform vec4 iDate; // (year, month, day, time in seconds)
 
已邀请:

cuixueying

赞同来自:

很感谢你的建议,目前文档只提供最基础的自定义shader的方式,更深层次的设置,需要开发者多多研究学习webGL,着色器的输入定义是遵守GLSL标准的!

要回复问题请先

商务合作
商务合作