Variables should be reused whenever possible in order to minimize the amount of variables which need to be declared (this shader uses 1 float2, 3 float4s and 10 floats).All variables should be declared in one place. The shader in this demo contains not a single uppercase letter. All variables should be just one letter.Since the final code was significantly smaller than 1k, I added some additional effects until I reached 1k (well, technically 1k=1000, so it’s really 1Ki or 1.024k, but whatever…).Īnd here are some interesting tricks from the author to create very very small code (these tricks help hitchhikr‘s exe packer to produce a better compressed code): Well, I might still finish that 4k eventually (with better performance, more accurate ambient occlusion,īlablabla…), but for now here is a 1k demo which raymarches a Mandelbulb and can get decent frame rates at good resolutions on aįast computer. This 1k demo has been coded in Direct3D 9 and has been shown to the Breakpoint 2010 demoparty.īreakpoint 2010 was my second demoparty so far, and even though I was there just as a spectator, I showed my Mandelbulb implementation to a few people,Īnd they suggested I make a 4k demo out of it. Here is a 1k prod of the 3D Mandelbrot fractal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |