Rie :godot: on Nostr: Implemented mipmapping and normal mapping. Got stumped for a long time because (1) I ...
Implemented mipmapping and normal mapping. Got stumped for a long time because (1) I didn't know you _have_ to generate binormals at loadtime using the cross product (I thought they were included in the file) and that it must be multiplied by the provided tangent's w component and (2) Slang seems to work differently with matrices and I kept getting wrong results. Still haven't fully figured out why or what the difference is, but it seems to work for now.
#Vulkan
Published at
2024-12-08 23:43:20Event JSON
{
"id": "624670fe4ff1f8a375b4819bd745aab07e2092e4faca1c0201dfdd2aac1740ae",
"pubkey": "82ace845c8ec836a807fda7803829c211f27851fd0248dcfd350dfaf4e933d7b",
"created_at": 1733701400,
"kind": 1,
"tags": [
[
"t",
"vulkan"
],
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/619/791/338/954/706/original/9fbc9116e32ac4db.webp",
"m image/webp",
"dim 1280x720",
"blurhash UHDI],?GNG%L0MayxtRkbGWBaeoextRjRks:"
],
[
"proxy",
"https://mastodon.gamedev.place/users/tracefree/statuses/113619855013928303",
"activitypub"
]
],
"content": "Implemented mipmapping and normal mapping. Got stumped for a long time because (1) I didn't know you _have_ to generate binormals at loadtime using the cross product (I thought they were included in the file) and that it must be multiplied by the provided tangent's w component and (2) Slang seems to work differently with matrices and I kept getting wrong results. Still haven't fully figured out why or what the difference is, but it seems to work for now.\n\n#Vulkan\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/619/791/338/954/706/original/9fbc9116e32ac4db.webp",
"sig": "3214eb90ecfce8b986490da78a17b3af8c816bec009feb0ddadc6d37032846947b7797c2ccd91a01ffb177aa05a08bbb8e859256f39dedfcc92789af078bc27b"
}