Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Compiled shader for WebGL, uncompressed size: 1.3KB
- // Skipping shader variants that would not be included into build of current scene.
- Shader "Zaicheg/Unlit_Color" {
- Properties {
- _Color ("Main Color", Color) = (1,1,1,1)
- _MainTex ("Base (RGB) Trans (A)", 2D) = "white" { }
- }
- SubShader {
- LOD 100
- Tags { "RenderType"="Opaque" }
- // Stats for Vertex shader:
- // gles : 1 math, 1 texture
- Pass {
- Tags { "RenderType"="Opaque" }
- GpuProgramID 62138
- Program "vp" {
- SubProgram "gles " {
- // Stats: 1 math, 1 textures
- "#version 100
- #ifdef VERTEX
- attribute vec4 _glesVertex;
- attribute vec4 _glesMultiTexCoord0;
- uniform highp mat4 glstate_matrix_mvp;
- uniform highp vec4 _MainTex_ST;
- varying lowp vec4 xlv_COLOR0;
- varying highp vec2 xlv_TEXCOORD0;
- void main ()
- {
- lowp vec4 tmpvar_1;
- mediump vec4 tmpvar_2;
- tmpvar_2 = clamp (vec4(0.0, 0.0, 0.0, 1.1), 0.0, 1.0);
- tmpvar_1 = tmpvar_2;
- highp vec4 tmpvar_3;
- tmpvar_3.w = 1.0;
- tmpvar_3.xyz = _glesVertex.xyz;
- xlv_COLOR0 = tmpvar_1;
- xlv_TEXCOORD0 = ((_glesMultiTexCoord0.xy * _MainTex_ST.xy) + _MainTex_ST.zw);
- gl_Position = (glstate_matrix_mvp * tmpvar_3);
- }
- #endif
- #ifdef FRAGMENT
- uniform sampler2D _MainTex;
- uniform lowp vec4 _Color;
- varying highp vec2 xlv_TEXCOORD0;
- void main ()
- {
- lowp vec4 tmpvar_1;
- tmpvar_1 = (texture2D (_MainTex, xlv_TEXCOORD0) * _Color);
- gl_FragData[0] = tmpvar_1;
- }
- #endif
- "
- }
- }
- Program "fp" {
- SubProgram "gles " {
- "// shader disassembly not supported on gles"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement