IOS metal OpenGL ES

太过爱你忘了你带给我的痛 2022-06-01 02:59 308阅读 0赞
  1. uniform float a=1.0;
  2. uniform samplerCube sTexture;
  3. vec2 sincos(float t){return vec2(sin(t),cos(t));}
  4. #pragma body
  5. vec3 vTextureCoord=refract(normalize(_surface.view),_surface.normal,0.94);
  6. vec4 finalColor=textureCube(sTexture,vTextureCoord);
  7. _output.color=finalColor*a;

![Image 1][]

不多说,看图!!!

[Image 1]:

发表评论

表情:
评论列表 (有 0 条评论,308人围观)

还没有评论,来说两句吧...

相关阅读