30 lines
863 B
Ucode
30 lines
863 B
Ucode
/**
|
|
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
|
|
* Node which outputs a texture object itself, instead of sampling the texture first.
|
|
* This is used with material functions to provide a preview value for a texture function input.
|
|
*/
|
|
class MaterialExpressionTextureObject extends MaterialExpression
|
|
native(Material)
|
|
collapsecategories
|
|
hidecategories(Object);
|
|
|
|
var() Texture Texture;
|
|
|
|
cpptext
|
|
{
|
|
virtual FString GetCaption() const;
|
|
virtual INT Compile(FMaterialCompiler* Compiler, INT OutputIndex);
|
|
virtual INT CompilePreview(FMaterialCompiler* Compiler, INT OutputIndex);
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
Texture=Texture2D'EngineResources.DefaultTexture'
|
|
MenuCategories(0)="Texture"
|
|
MenuCategories(1)="FunctionUtility"
|
|
|
|
// Clear the existing outputs from the parent class
|
|
Outputs.Empty
|
|
Outputs(0)=(OutputName="")
|
|
}
|