UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DatasmithMaterialsUtils.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Math/Color.h"
9#include "Math/Vector.h"
10#include "Math/Vector2D.h"
11#include "Misc/Optional.h"
13
17
19{
21 {
23 : UVOffset( FVector2D::ZeroVector )
24 , UVTiling( FVector2D::UnitVector )
25 , RotationPivot( 0.f, 1.f, 0.f )
26 , RotationAngle( 0.f )
27 , ChannelIndex( 0 )
29 , bMirrorU( false )
30 , bMirrorV( false )
31 {
32 }
33
34 // UV space has its origin at top-left, with U going left-to-right, V top-to-bottom
37
38 // W rotation center
40
41 // W rotation in degrees (rotation is counterclockwise)
43
44 // UV channel to use
46
47 // Enable "Real-World Scale" behavior as in 3ds max
49
50 // Enable mirroring of texture in U and V
53 };
54
64
77
79}
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EDatasmithTextureMode
Definition DatasmithDefinitions.h:168
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition DatasmithMaterialElements.h:105
Definition DatasmithMaterialElements.h:38
Definition DatasmithMaterialElements.h:213
Definition SharedPointer.h:153
Definition DatasmithMaterialsUtils.h:19
DATASMITHCORE_API FLinearColor TemperatureToColor(float Kelvin)
Definition DatasmithMaterialsUtils.cpp:203
DATASMITHCORE_API IDatasmithMaterialExpressionTexture * CreateTextureExpression(const TSharedRef< IDatasmithUEPbrMaterialElement > &MaterialElement, const TCHAR *ParameterName, const TCHAR *TextureMapPath, const FUVEditParameters &UVParameters)
Definition DatasmithMaterialsUtils.cpp:99
DATASMITHCORE_API IDatasmithMaterialExpression * CreateWeightedMaterialExpression(const TSharedRef< IDatasmithUEPbrMaterialElement > &MaterialElement, const TCHAR *ParameterName, TOptional< FLinearColor > Color, TOptional< float > Scalar, IDatasmithMaterialExpression *Expression, float Weight, EDatasmithTextureMode TextureMode=EDatasmithTextureMode::Diffuse)
Definition DatasmithMaterialsUtils.cpp:115
@ false
Definition radaudio_common.h:23
Definition DatasmithMaterialsUtils.h:21
float RotationAngle
Definition DatasmithMaterialsUtils.h:42
bool bMirrorV
Definition DatasmithMaterialsUtils.h:52
FVector2D UVTiling
Definition DatasmithMaterialsUtils.h:36
uint8 ChannelIndex
Definition DatasmithMaterialsUtils.h:45
bool bMirrorU
Definition DatasmithMaterialsUtils.h:51
FVector RotationPivot
Definition DatasmithMaterialsUtils.h:39
FVector2D UVOffset
Definition DatasmithMaterialsUtils.h:35
FUVEditParameters()
Definition DatasmithMaterialsUtils.h:22
bool bIsUsingRealWorldScale
Definition DatasmithMaterialsUtils.h:48
Definition Color.h:48