Here, I need an cube map to be used as environment reflection source and ambient lighting source.
setting it up on every single model file will be very inconvenient and impractical, e.g. what if I’ve to change it on the fly?
The first thing pop into my head is to use render.enable_texture, unfortunately, it works only with render textures.
The second though bring me to render.constant_buffer, but it’s not clear if it accept texture at all, with little try and error, I found that resource API is not available in render script context, thus close this path.
seems the last resort I may have is setting it on every single model component before they appear on screen, I have not try this yet, but the document said it has only texture0 property, and I wonder if I can bind other sampler with go.set.
Is there any official, clean method to do this? setting common sampler for every models in the scene?