Hi to make the fps better i want to scale a model but my problem is when i scale it with my.scale_x=2; my.scale_y=2; then the texture gets bigger but i dont want it i want it the normal size but tiled in 4 parts.How can i reach it do you know a shader for it? WFG PRogger
asking is the best Way to get help
Re: Problem texture scaling
[Re: Progger]
#382267 09/06/1118:2609/06/1118:26
Hi, when you scale an entity, the UV coordinates won't change. To achieve the effect, load the model in MED, scale it to the double size and and rescale the UV coordinates in the skin editor, until they are tiled (or do that in the editor in which you created the model, I dunno).
To dynamically change the tiling of a texture, you need a shader for that, yes.
Re: Problem texture scaling
[Re: HeelX]
#382270 09/06/1118:5509/06/1118:55
If I am not mistaken you just have to write a vertex shader, which passes the texture coordinate, scaled by a constant factor (or a variable one via entity skills).
Re: Problem texture scaling
[Re: HeelX]
#382279 09/06/1119:2609/06/1119:26