OpenGL 实现的距离场渲染器试验 - 哆啦比猫的技术瞎扯 - Arch Linux · ドラえもん · 实时绘制

OpenGL 实现的距离场渲染器试验

哆啦比猫 posted @ 2015年4月18日 18:33 in 项目 with tags dfd , 7287 阅读

距离场渲染(多材质),伪雾,反射,伪折射,天空(日),光晕,HDR,FXAA抗锯齿,OpenGL 3.3 core profile,SDL,可执行文件不足8KB(没能力做成 4K intro,只能当作 8K 了)

IyEvYmluL3NoCnQ9YG1rdGVtcGAmJnRhaWwgLW4gKzMgIiQwInx4eiAtZD4iJHQiJiZjaG1vZCAr
eCAiJHQiJiYiJHQiO3JtICIkdCI7ZXhpdAr9N3pYWgAABObWtEYCACEBFgAAAHQv5aPgSmgT5l0A
P5FFhGg9iabaisyT4k7ZBJTBtzGaOI6lqHFHOC6mWzcDWhXkC1AJLChYW5sqy2od7d3euIsPzR2j
V6cuIuwS+Q89lptYCm9fQVmnR3Glksy8caJxwsn5l8yxlFeb/8kB+JYfy+17ahTOu6s1LnrhS/M1
EliCqcS93xeM9OS6nb9j/6PFQK/8UC+5PCr+RgvnZDDtFsBvBCC+CGctf90t4gXxZ0zT6/IErp8j
FrsujlRtPX6u+HG/NFNWxBHcbSsHvhmeMG1ng/y1JghFWVL7T+qTr0M4Ax9RasNNl4pc8m99efgj
DvLezwQkDTjwRFaO5IamooHoSCpUaP0aXCPTVKifRLZhLGwauwgguUd01ZawfExo4/Kq37NYSbze
VTvFyO/xLc8r6An623L+mCGARJUhGpptR0KqvhgOD1X5jcWaah6mpqtv5PdSiMxRt6km6J35gnrT
ZLbv2hWh3oc4eQyDHoCAh5XUcdZcX8lfS8JPvDm5f7XxWNarmXDUifsR/MuQ24gtgMN+DZQIRepB
14hCLyHsnFl3xvZkQ54cLenEd4T2Kfe9P4Dma0IVbSC9+PdRM0qHqMQYMnRDO9ddtXlKoo7M10CY
e96vZgCzSjhNfZvcpIIqoKKIGphdFdpXoyZQAHk4qLGfCr0puqixkhtMHtdmcv27UO7S6KSM41ij
5t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urmwGofByMwtdEiXC2IpXVJ6gj+zLDP
4y84eW8RdDkZ9WCSAAYrSA51b+fPz/2WhsSIs7O5XYz2bQH2Q2bJYELD7LXGcrNov1k7vkAuHus7
M6NyAUk6K/eyf/ndQs/I/nUVPYCbuQSkGwF+/lvRdXkdhMMSIAvocJwPBj1KVQnDN4fY3ixR1XqD
fiogxSxlGlFS77LMzwA95orxlCovUwec5tA0PpkjjHRqMVuDTmzSNH6YF+MzQzQL11WDrqfSvpdN
cbuSd1lZ/hfzIMuYp4e0nVVKzUG7oxOrJnGFwjNYuaKViJrbEa828oXubf3LmdAZyMlqqoXofVWb
vZdKggMk8s0ENey+tLUJ0E/swnDBTX0J0letCmkg3zL2fm3nQcDmiYuZQGjqTPvNg560Zvw0Hpps
FT7aPM7A73JCLUo/K4wA0EoD8vZo8v/JHxafyiRUyVDjJQp3yhRRzyJQ7MJb3u2uJhwEpsex6hym
X6UHNOQdackCyV2O9OUTsUVPjL/cpYtGsyNGvTP2nNjb6IAwsh5sLEHnOA9Sz9s/7eX18YVsS7gk
EB5w9oYK9HLVkE7YhwMrbuuH7Rx6VrKWsBB5aqQd0lnC7H8XGZXB85X3+Gw+Thlb9jpEnFHJw/2N
fCvds9yuQjKSK5F8MjjaWdwo+tk02OxGeSEg130YTMnDOFiMKtin9T9RtgDcYEgtle3MlYXIJHab
tDg5IboRCcPfX7xwizrtD+OknpOOaF/C51otwB1xDU/XxgBjOvWZctMGd7/jmXSqW1UQ6eB28W7L
9rg3BnLjFi+gBxCwVlbtdCqPo/KAAAAAqhWjtNcvY3gAAYIo6ZQBABQq6imxxGf7AgAAAAAEWVo=

凡未特殊声明(转载/翻译),所有文章均为原创。
by Giumo Xavier Clanjor (哆啦比猫/兰威举), 2010-2019.
知识共享许可协议本作品采用知识共享署名·非商业性使用·相同方式共享 3.0 中国大陆许可协议进行许可。
文中凡未特殊声明且未声明为引用的代码均以 MIT 协议授权。

  • 无匹配
  • 无匹配
blog comments powered by Disqus
© 2010-2019 Giumo Xavier Clanjor (哆啦比猫/兰威举).
© 2013, 2014, 2015-2016 and 2017 The Dark Colorscheme Designed by Giumo Xavier Clanjor (哆啦比猫/兰威举).
知识共享署名·非商业性使用·相同方式共享 3.0 中国大陆许可协议
| © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee