1
0
KF2-Dev-Scripts/Engine/Classes/MaterialExpressionTextureObject.uc

30 lines
863 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* 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="")
}