Jump to content
Unity Insider Forum
Sign in to follow this  
MustafGames

Simplest Shader?

Recommended Posts

Grüße,

kann mir jemand die SetTexture Methode näher erklären und ob diese effizienter ist als alles ausführlich zu schreiben?

Ich benötigte, Transparents & 1 Texture & Schatten

Shader "Texture Only"{


Properties {
    _MainTex ("Texture", 2D) = ""
}


SubShader {
    Pass {SetTexture[_MainTex]}
}


}

Mfg Mustaf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×