xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Loading textures for postprocessing shaders #190

Closed Arsakes closed 8 years ago

Arsakes commented 8 years ago

Does XML3D provides some interface for loading textures for postprocessing shaders (ones which are not associated with <mesh>es or <model>s ?

csvurt commented 8 years ago

Not right now, you'd have to either load and create the textures manually in Javascript or use a dummy mesh and material to ensure the <texture> elements are processed and then use those. The ssao-pass.js file has an example of a texture that's loaded manually, in this case the src is a base64 data string but the idea would be exactly the same if it were an external image.