-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed
Labels
TSLThree.js Shading LanguageThree.js Shading Language
Milestone
Description
Description
Still porting Legacy shaders into TSL, bumped into something,
Using Legacy shaders, we could replace a string in a chunk to inject =>
shader.replace( xxx,
'
vec4 META_DATA_ARRAY[10];
META_DATA_ARRAY[0] = vec4(0.0, 0.7513855695724487, 1.0, 0.0950118750333786);
META_DATA_ARRAY[1] = vec4(0.0, 0.9136975407600403, 1.0, 0.0482977032661438);
META_DATA_ARRAY[2] = vec4(0.0, 0.5273159146308899, 1.0, 0.12668250501155853);
META_DATA_ARRAY[3] = vec4(0.0, 0.9619952440261841, 1.0, 0.03246239200234413);
META_DATA_ARRAY[4] = vec4(0.0, 0.0, 1.0, 0.241488516330719);
' + xxx )
Using 'property' in TSL to write hardcoded float, vec, mat etc.. is available
Been looking for an example in the repo that shows support on TSL 'property' for arrays of vec, float, mat etc.. but could not find it ( unless I completely missed it )
Metadata
Metadata
Assignees
Labels
TSLThree.js Shading LanguageThree.js Shading Language