Tiled/repeating textures #399
Comments
|
Sounds like a great idea |
|
I think that can already be done using |
|
I'm not sure how to specify a |
|
How about adding |
|
Yup adding a SamplerDescriptor to Texture has been on my "mental to-do list" for awhile. I think that's the right approach. |
GLTF loader now grabs (some) sampler information from the respective GLTF sampler struct.
GLTF loader now grabs (some) sampler information from the respective GLTF sampler struct.
|
In #747 I've moved the Still, when loading a texture manually (not from a GLTF file), like it's done in the texture example, we'd still need to specify the sampler somehow. Of course, we could just keep it this way, initialized with default, and the user could still mutate it after loading. |
|
@W4RH4WK sounds reasonable. Atelier Assets (which we will eventually migrate to) allows you to specify per-asset configuration in a ".meta" file. I think we will eventually put the SamplerDescriptor config there for formats like png. |
|
#747 largely resolves this problem, but I think we should probably hold off on closing this until we can do it for arbitrary texture files (aka using the ".meta" config in atelier assets) |
It would be nice to set a texture to tile or repeat on a mesh instead of stretch.
The text was updated successfully, but these errors were encountered: