[DiscordArchive] what's your current guess ?
[DiscordArchive] what's your current guess ?
Archived author: Titi • Posted: 2022-01-24T19:30:54.119000+00:00
Original source
what's your current guess ?
Archived author: Titi • Posted: 2022-01-24T19:31:00.672000+00:00
Original source
intra guessed it to be x2000 I think
Archived author: Pursche • Posted: 2022-01-24T19:31:17.180000+00:00
Original source
I will take a look when I'm at my PC in a few min
Archived author: stoneharry • Posted: 2022-01-24T19:31:31.939000+00:00
Original source
I think I figured it out. The data values are only read if the time value is > 0
Archived author: Titi • Posted: 2022-01-24T19:31:55.117000+00:00
Original source
could also look at noggit's code
Archived author: intra • Posted: 2022-01-24T19:33:14.481000+00:00
Original source
I have no idea, but I did manage to look fairly close. Although I think the X and Y scale was different. Had to squeeze it a bit in the X axis
Archived author: Titi • Posted: 2022-01-24T19:34:15.328000+00:00
Original source
☠️
Archived author: Pursche • Posted: 2022-01-24T19:38:49.118000+00:00
Original source
<@!213383518842126336> Noggit had bad values
Archived author: Pursche • Posted: 2022-01-24T19:40:41.177000+00:00
Original source
<@!213383518842126336> ```c++
if (drawCallData.liquidType == 2 || drawCallData.liquidType == 3) // Lava or Slime
{
float textureUVX = input.textureUV.x / 102.0f; // Found these by trial and error, unless we find another spot that looks bad this is what we're gonna use
float textureUVY = input.textureUV.y / 102.0f;
float2 textureUV = float2(textureUVX, textureUVY);
// Add slow scrolling effect
textureUV += drawCallData.uvAnim * (_constants.currentTime);
color = _textures[drawCallData.textureStartIndex + textureAnimationOffset].Sample(_sampler, textureUV);
}
```
This is what we do in our shader for Lava, it produces this result:
![[Image: unknown.png?ex=690c5109&is=690aff89&hm=5...3e9123f1a&]](https://cdn.discordapp.com/attachments/415944535718494208/935257891831689306/unknown.png?ex=690c5109&is=690aff89&hm=5c480e924a1e7186040c9fb05b734f19adf5868529ab83234b394d73e9123f1a&)
Archived author: Titi • Posted: 2022-01-24T19:40:57.860000+00:00
Original source
seems like noggit uses 255
![[Image: unknown.png?ex=690c5109&is=690aff89&hm=5...3e9123f1a&]](https://cdn.discordapp.com/attachments/415944535718494208/935257891831689306/unknown.png?ex=690c5109&is=690aff89&hm=5c480e924a1e7186040c9fb05b734f19adf5868529ab83234b394d73e9123f1a&)