Texture Only

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(ShaderLab - Texture Only.shader)
Line 16: Line 16:
 
<shaderlab>Shader "Texture Only" {
 
<shaderlab>Shader "Texture Only" {
 
 
Properties {_MainTex ("Texture", 2D) = ""}
+
Properties
 +
{
 +
_MainTex ("Texture", 2D) = ""
 +
}
  
SubShader {Pass {SetTexture[_MainTex]} }
+
SubShader
 +
{
 +
Pass
 +
{
 +
SetTexture[_MainTex]
 +
}
 +
}
  
 
}</shaderlab>
 
}</shaderlab>

Revision as of 16:37, 25 August 2010

Author: Jessy

Description

This is a seriously simple shader. It just textures your model with a single map, exactly how you painted it. No lights, no tinting; it's your job to make it look good in a painting app, when you use this!  :-D

Usage

Drag a single texture onto the material's only variable slot.


Click here for a zip file that includes this shader.

ShaderLab - Texture Only.shader

<shaderlab>Shader "Texture Only" {

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

SubShader { Pass { SetTexture[_MainTex] } }

}</shaderlab>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox