View Issue Details

IDProjectCategoryView StatusLast Update
0028850RunnerHTML5Public2018-10-26 12:51
ReporterStewart BishopAssigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OSOS Version
Product Version2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0028850: HTML5: shader_set_uniform_f_array() doesn't work
DescriptionPassing uniforms to a GLSL ES shader as an array does not work in the HTML5 export. Works as normal in Windows VM and YYC.

shader_set_uniform_f_array(uni,texel); // this does not work
shader_set_uniform_f(uni,texel[0],texel[1]); // this does work
( as presented in a simple outline shader)
Steps To Reproduce1) Run in HTML5
2) Press space to toggle between passing in arguments or an array
3) See that the array version doesn't work
Tagshtml5, rendering, Runner
1.4 Found In
2.x Runtime Found In2.1.3.189
2.x Runtime Verified In2.2.1.268


Stewart Bishop

2018-02-07 12:05


ShaderTestHtml5.yyz (25,363 bytes)

Mike Dailly

2018-08-02 09:18

Developer   ~0061014

fixed. sending arrays much match the element size.

vec4 array[2].

You must send "multiple" of 4 floats at the very least. If you don't, we patch up the extra space with 0.0's, but this is slower.