Reflective and transparent - like glass

Hi simple request since i’ve already spent ages trying to figure this out.

I need a glass shader, reflective (cubemap) and tranparent (base texture alpha).

Just a combination of the Alpha-Diffuse and Reflect-Diffuse shaders.

I guess that shouldn’t be too hard and would be really grateful if you who now this stuff would spare a minute :slight_smile:

Any help at all?

why dont u dive into the sources of those 2 shaders, and desect them then take the parts you need !

sry im low on contribution but i think those 2 shaders are fairly easy selfexplanatory, and you would learn more by doing it that way !
(dont wanna come off as a prick ! no harm intended )

Look on the Unity Wiki for the Window shader. That does exactly what you need.

Actually, I found shader code for glass on this page:

http://unity3d.com/support/documentation/Components/SL-Blend.html

Although the cube map seems to move a heck of a lot and really fast when i walk past, doesn’t really behave like glass :frowning: maybe a planer 2d reflection would work better?)

Can’t find anything on the unity wiki
http://www.unifycommunity.com/wiki/index.php?title=Main_Page when I search for window shader?