プレイ日記
Pkyoshi19 Pokeyoshi19
I think I understood raytracing..?
4そうだね
プレイ済み
返信[1]
親投稿
Pkyoshi19 Pokeyoshi19
The only thing I still don't understand is, how do I make all the sprites (in this picture, the fruits) be the first one (in this picture, the strawberry)?
0そうだね
プレイ済み
返信[2]
親投稿
TN21 Trinitro21
Might want to take your UV coordinates and divide by 4. But I haven't seen your code yet. So I might be wrong.
0そうだね
プレイ済み
返信[3]
親投稿
Pkyoshi19 Pokeyoshi19
It won't work with my code... Besides, wouldn't it just make one big strawberry, and not 16 small ones?
1そうだね
プレイ済み
返信[4]
親投稿
TN21 Trinitro21
Oh, I thought that's what you wanted. The width of your sprites is 64, and you can't make a sprite loop its UVs, but if you made 4 sprites, each with a width of 16, that would fix your problem. By the way, you could say "I MOD 16" instead of "I-16*FLOOR(I/16)".
1そうだね
プレイ済み