Rie :godot: on Nostr: #Godot thing I learned yesterday with live debugging help from other devs: In ...
#Godot thing I learned yesterday with live debugging help from other devs: In GDShader, pow(x, 2.0) is _not_ the same as x*x. pow has undefined behavior when x is negative! This led to my grass shader popping in and out of the scene, but only my laptop and not my desktop (which have different GPU vendors)
Published at
2025-01-14 11:39:03Event JSON
{
"id": "dbb4b0baadec23beddbd926614357dc4626f0f07e9f18e7daa9f769365ef6c9d",
"pubkey": "82ace845c8ec836a807fda7803829c211f27851fd0248dcfd350dfaf4e933d7b",
"created_at": 1736854743,
"kind": 1,
"tags": [
[
"t",
"godot"
],
[
"proxy",
"https://mastodon.gamedev.place/users/tracefree/statuses/113826512455872428",
"activitypub"
]
],
"content": "#Godot thing I learned yesterday with live debugging help from other devs: In GDShader, pow(x, 2.0) is _not_ the same as x*x. pow has undefined behavior when x is negative! This led to my grass shader popping in and out of the scene, but only my laptop and not my desktop (which have different GPU vendors)",
"sig": "cb1143873d0d62746b9e6fcb60c271e545966188ff3201ec11053ccdb206a42addb85c4353c4522bf300e2f1d87f45ab0cc2ad0dea6048c03cf81e0e8a7b73a3"
}