sp.shader 316 B

123456789101112131415161718
  1. shader_type spatial;
  2. render_mode blend_mix,depth_draw_never,cull_back,unshaded;
  3. uniform sampler2D tex_panorama : hint_albedo;
  4. void vertex() {
  5. }
  6. void fragment() {
  7. vec2 tuv=UV;
  8. tuv.x=-tuv.x;
  9. tuv.x=-0.5+tuv.x;
  10. tuv=fract(tuv);
  11. vec4 albedo_tex = texture(tex_panorama,tuv);
  12. ALPHA=1.;
  13. ALBEDO = albedo_tex.rgb;
  14. }