Damus
Rune Skovbo Johansen profile picture
Rune Skovbo Johansen
@Rune Skovbo Johansen
In Unity (builtin pipeline), how would I call CalculateLevelOfDetail or equivalent based on a sampler2d (and uvs)? All examples seems to use a separate Texture2D and SamplerState, but then I'd have to rewrite the whole shader to use those. Internally, methods like tex2d, which take a sampler2d, must get access to the SamplerState somehow, but I can't find anything about how to access Texture2D and SamplerState from a sampler2d...
1
Aras Pranckevičius · 3w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0f7e9qey4t9vv0jqea92zgg7m05ghlx38c7w08yxmnrda63k07ts824e67 you can't get to SamplerState from oldskool sampler2D. So you'd need to change the related parts of the shader. "sampler2D foo" -> "Texture2D foo; SamplerState samplerfoo;", and then use...