# Pro version and Glass

**URL:** https://discussions.unity.com/t/pro-version-and-glass/403230
**Category:** Shaders & Materials
**Tags:** Shaders
**Created:** [December 7, 2009, 7:23am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230 "2009-12-07T07:23:43Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 7, 2009, 7:23am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/1 "2009-12-07T07:23:43Z")

</div>

Hi all,

I’m about to buy the Pro Version, and I have a question about Glass. I’m hoping there’s a way to get a good Glass shader going. I’ve built my scene in the Free 2.6, and it’s looking quite good (except for the glass obviously).  
Can anyone tell me if the features of Pro mean that my glass can be made to look like decent glass?

Thanks

Clamps

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [December 7, 2009, 8:03am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/2 "2009-12-07T08:03:33Z")

</div>

all you get with pro is already present in unity indie, just not enabled when you add it to the scene :).

you can either use one of the refraction type shaders or use the pro water shader as a base to create your own. The sources for the builtin shaders can be found on the website

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 7, 2009, 8:18am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/3 "2009-12-07T08:18:24Z")

</div>

I’m sorry, I’m not sure I understood your answer. Are you saying that there’s no Glass shader in any version? That no one has posted, anywhere, a decent glass shader that we can look at or use?

---

<div class="post-metadata">

### Author: ![anon\_33080528](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon\_33080528](https://discussions.unity.com/u/anon_33080528)
#### Post date: [December 7, 2009, 8:23am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/4 "2009-12-07T08:23:38Z")

</div>

The refraction shaders provide all you need for good looking glass. (coloring, bumped refraction, specular…)

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 7, 2009, 8:30am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/5 "2009-12-07T08:30:05Z")

</div>

Right, that makes sense. However I can see no evidence of Refraction Shaders anywhere in Indie. Are they only available in Pro?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [December 7, 2009, 8:31am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/6 "2009-12-07T08:31:46Z")

</div>

they only work in pro, right.

they though should show up in the shader dropdown of the material

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 7, 2009, 8:34am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/7 "2009-12-07T08:34:32Z")

</div>

I’m unable to find them. The closest I can see are “Transparent” shaders. Is this them?

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 8, 2009, 7:28am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/8 "2009-12-08T07:28:25Z")

</div>

Hi all,  
I’m still unable to see any shaders with the word “Refraction” in their title, even after upgrading my license to the 30 Pro trial.  
Can anyone point me in the right direction?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [December 8, 2009, 8:24am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/9 "2009-12-08T08:24:23Z")

</div>

check out the FX ones

I think the second glass shader has refraction and naturally water has it too (but not water (simple))

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 8, 2009, 9:11am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/10 "2009-12-08T09:11:17Z")

</div>

Thanks, I looked there…  
However I only see Flare, Projector Multiply and Water (Simple). Am I missing some resources perhaps?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [December 8, 2009, 9:55am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/11 "2009-12-08T09:55:12Z")

</div>

Either you didn’t import the pro asset or they are disabled on non-pro to prevent non-pro users from beeing confused

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 8, 2009, 10:19am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/12 "2009-12-08T10:19:48Z")

</div>

That must be it. Thanks very much for the advice. I installed the downloaded files, but it seems I might not have the Pro Assets. Is there a way to ensure that I have them? Or should I download them separately?

---

<div class="post-metadata">

### Author: ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)
#### Post date: [December 8, 2009, 10:39am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/13 "2009-12-08T10:39:26Z")

</div>

the package is present by default with any unity installation.

You just need to import it.  
Its in the package folder in your unity install directory

---

<div class="post-metadata">

### Author: ![anon\_45588535](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_45588535](https://discussions.unity.com/u/anon_45588535)
#### Post date: [December 8, 2009, 10:51am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/14 "2009-12-08T10:51:21Z")

</div>

Thank you very much. That worked perfectly. I now have the glass shaders.

---

<div class="post-metadata">

### Author: ![RHD](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/rhd/32/224285_2.png) [@RHD](https://discussions.unity.com/u/RHD)
#### Post date: [December 14, 2009, 7:44pm UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/15 "2009-12-14T19:44:35Z")

</div>

I’ve just loaded the Pro Assets and I’m having the same problem finding a refractive shader or anything useful for glass.

The two glass shaders I have now are “Stained bump distort” and “stained bump distort specular”. They don’t have a refraction option and I don’t think the bump is correct for most windows- IE non stained ones.

Cheers.

---

<div class="post-metadata">

### Author: ![anon\_85819370](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anon\_85819370](https://discussions.unity.com/u/anon_85819370)
#### Post date: [December 14, 2009, 8:45pm UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/16 "2009-12-14T20:45:18Z")

</div>

Hello,  
try the car shader, there’s a glass in there

Ray

---

<div class="post-metadata">

### Author: ![RHD](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/rhd/32/224285_2.png) [@RHD](https://discussions.unity.com/u/RHD)
#### Post date: [December 14, 2009, 8:48pm UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/17 "2009-12-14T20:48:16Z")

</div>

Hi Yellowlabrador,

Where’s the car shader? Is it a special download somewhere?

Cheers!

---

<div class="post-metadata">

### Author: ![anon\_85819370](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anon\_85819370](https://discussions.unity.com/u/anon_85819370)
#### Post date: [December 14, 2009, 9:00pm UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/18 "2009-12-14T21:00:17Z")

</div>

Here’s that script,

```auto
Shader "Car/Glass" {
Properties {
	_Color ("Main Color", Color) = (1,1,1,1)
	_SpecularColor ("Specular Color", Color) = (0.5,0.5,0.5,1)
	_Cube ("Reflection Cubemap", Cube) = "_Skybox" {TexGen CubeNormal}
}

Category {
	Tags {Queue=Transparent}
	ZWrite Off
	Blend SrcAlpha OneMinusSrcAlpha
	Lighting Off
	Colormask RGB

	SubShader {
		Pass {
			
CGPROGRAM
// profiles arbfp1
// fragment frag
// fragmentoption ARB_fog_exp2
// fragmentoption ARB_precision_hint_fastest 
// vertex vert
#include "UnityCG.cginc"

struct v2f {
	V2F_POS_FOG;
	float3 normal	: TEXCOORD0;
	float3	viewDir	: TEXCOORD1;
};

v2f vert (appdata_tan v)
{	
	v2f o;
	PositionFog( v.vertex, o.pos, o.fog );
	o.normal = mul( (float3x3)_Object2World, v.normal );
	o.viewDir = mul( (float3x3)_Object2World, ObjSpaceViewDir(v.vertex) );
	
	return o;
}

uniform samplerCUBE _Cube : register(s0);
uniform float4 _Color;
uniform float4 _SpecularColor;

float4 frag (v2f i) : COLOR
{
	float3 normal = i.normal;
	i.viewDir = normalize(i.viewDir);
	half nsv = saturate(dot( normal, i.viewDir ));
	
	// calculate reflection vector in world space
	half3 r = reflect(-i.viewDir, normal);
	
	half4 reflcolor = texCUBE(_Cube, r);
	
	half fresnel = 1 - nsv*0.5;
	half3 c = lerp( _Color.rgb, reflcolor.rgb*_SpecularColor.rgb, fresnel );
	
	return half4( c, fresnel );
}
ENDCG  
			SetTexture [_Cube] {combine texture}
		}
	}
	
	SubShader {
		Pass {
			Color [_Color]
		}
	}
}

}

```

I have the car shader, the whole shebang but somehow can’t find what folder it is located, standard or pro. the shader came from the car tutorial UT had , I’ll try to look again for the car tutorial folder, I know I posted it here before but can’t find it. I guess I have that problem that I can’t find the things that I am looking for 😄

Ray

---

<div class="post-metadata">

### Author: ![RHD](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/rhd/32/224285_2.png) [@RHD](https://discussions.unity.com/u/RHD)
#### Post date: [December 14, 2009, 9:17pm UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/19 "2009-12-14T21:17:49Z")

</div>

Dear Ray,

You total star!

I don’t remember a car shader which is why I asked. I shall keep an eye out for it but am immediately copying this into Unity. Thanks a million!

Really decent of you!

---

<div class="post-metadata">

### Author: ![anon\_9978537](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@anon\_9978537](https://discussions.unity.com/u/anon_9978537)
#### Post date: [January 3, 2010, 10:10am UTC](https://discussions.unity.com/t/pro-version-and-glass/403230/20 "2010-01-03T10:10:06Z")

</div>

Im an Indie user. The fact that unity doesnt support Glass effect in indie version. It is correct. I tried to do a simple scene by adding a plane and a cube then add the StainedBumpedDistorted shader. Its no use.  
But if u open the Island demo, then add this shader to some object then it works!! Can u explain this?  
I have no idea… Why i cant have apply shader in my project while in the island demo it works?

[Next page](https://discussions.unity.com/t/pro-version-and-glass/403230.md?page=2)
