Experimental browser for the Atmosphere
#UE #gamedevelopment #shader #hlsl It is my understanding that bit-packing 2 floats into a 32-bit one can create a NaN if exp bits are all ones. So I use 15- & 16-bit of precision and split the 15 bits to the left into two groups separated by a zero to prevent that. Is that dumb?
Apr 10, 2025, 9:39 PM
{ "uri": "at://did:plc:wk4m2mz73gn5hunp5gcrdbpy/app.bsky.feed.post/3lmihpdfcjs2a", "cid": "bafyreifjr53yx4fd4pnfly4tycror2bqs3obllvwn2x4q63z5itz5sucge", "value": { "text": "#UE #gamedevelopment #shader #hlsl\nIt is my understanding that bit-packing 2 floats into a 32-bit one can create a NaN if exp bits are all ones. So I use 15- & 16-bit of precision and split the 15 bits to the left into two groups separated by a zero to prevent that. Is that dumb?", "$type": "app.bsky.feed.post", "langs": [ "en" ], "facets": [ { "index": { "byteEnd": 3, "byteStart": 0 }, "features": [ { "tag": "UE", "$type": "app.bsky.richtext.facet#tag" } ] }, { "index": { "byteEnd": 20, "byteStart": 4 }, "features": [ { "tag": "gamedevelopment", "$type": "app.bsky.richtext.facet#tag" } ] }, { "index": { "byteEnd": 28, "byteStart": 21 }, "features": [ { "tag": "shader", "$type": "app.bsky.richtext.facet#tag" } ] }, { "index": { "byteEnd": 34, "byteStart": 29 }, "features": [ { "tag": "hlsl", "$type": "app.bsky.richtext.facet#tag" } ] } ], "createdAt": "2025-04-10T21:39:11.084Z" } }