Damus

Recent Notes

Rune Skovbo Johansen profile picture
Join me for a sunrise walk?

I've implemented airglow so the night sky isn't pitch black, boosted ambient lighting in the dark, and carefully managed transitions of those things through the sunrise and into daylight.

Still missing an actual sun 🤦, moon and stars, fixing a few bugs, and slowing down time around the sunrise. In this video, all time is at 60x, which is generally good for a game day-night cycle but way too fast for a realistic sunrise.
#GameDev #IndieDev

1
Aras Pranckevičius · 9w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0f7e9qey4t9vv0jqea92zgg7m05ghlx38c7w08yxmnrda63k07ts824e67 looks great!
Aras Pranckevičius · 13w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0f7e9qey4t9vv0jqea92zgg7m05ghlx38c7w08yxmnrda63k07ts824e67 you can't get to SamplerState from oldskool sampler2D. So you'd need to change the rel...
Rune Skovbo Johansen profile picture
@nprofile1q... Hmm, I'm a bit confused whether it's a surface shader. It doesn't seem to have #pragma surf but it does use the SurfaceOutputStandardSpecular struct. It calls LightingStandardSpecular inside its fragment shader. Does that make it a surface shader or not?
Rune Skovbo Johansen profile picture
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 · 13w
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...
Aras Pranckevičius · 14w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqggf8xvx2uv7kcw47qx4mxtarsxz07e0jwcjskl4hu0x2pvk670fsp2sz5f nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0f7e9qey4t9vv0jqea92zgg7m05ghlx...
Rune Skovbo Johansen profile picture
@nprofile1q... yeah @nprofile1q... is doing good work in The Free Shepherd. Meanwhile the landscapes in my game are not *too* far off that third photo Aras posted, I think. Except you won't find landscapes without trees in my forest game. 😉


zen_m · 14w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0f7e9qey4t9vv0jqea92zgg7m05ghlx38c7w08yxmnrda63k07ts824e67 nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqvfhu7aelr6xh3gwqnw8zjwqv0wuzl9fejfrj9ug647ldvy3jtmkq9l5x8e Can you two cooperate to get these types of vistas into Rune's world? Th...