- 博客(3)
- 收藏
- 关注
原创 lambert光照
lambert光照模型是:光线角度向量dot物体法线向量,得到光照亮度。Shader "Unlit/shader2"{Properties{_MainTex ("Texture", 2D) = "white" {}_LightDir("Light",Vector)=(1,0,0,0)_Intensity("Intensity",float)=1}SubS
2017-08-03 20:00:16
311
转载 ray marching shader 2:viewspace 转换 worldspace
shadertoy上的第二个关于ray marching的教程关于viewspace 转 worldspace 的推导:http://blog.csdn.net/silangquan/article/details/50987196float minDist=0.0;float maxDist=100.0;/** * Signed distance function for a
2017-07-06 22:24:52
431
翻译 ray marching shader
shadertoy上的第一篇关于ray marching的教程,实现了在屏幕上绘制一个3D球体float minDist=0.0;float maxDist=100.0;float getDist(vec3 cameraOrign , vec3 dir ){ float depth=minDist; for(int i =0;i<255;i+=1){
2017-07-06 22:20:02
319
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人