EShaderValues

Values to be uploaded as shader constants

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SpeedTreeWind.h

Include

#include "SpeedTreeWind.h"

Syntax

enum EShaderValues
{
    SH_WIND_DIR_X,
    SH_WIND_DIR_Y,
    SH_WIND_DIR_Z,
    SH_GENERAL_STRENGTH,
    SH_GLOBAL_TIME,
    SH_GLOBAL_DISTANCE,
    SH_GLOBAL_HEIGHT,
    SH_GLOBAL_HEIGHT_EXPONENT,
    SH_BRANCH_1_TIME,
    SH_BRANCH_1_DISTANCE,
    SH_BRANCH_2_TIME,
    SH_BRANCH_2_DISTANCE,
    SH_BRANCH_1_TWITCH,
    SH_BRANCH_1_TWITCH_FREQ_SCALE,
    SH_BRANCH_2_TWITCH,
    SH_BRANCH_2_TWITCH_FREQ_SCALE,
    SH_BRANCH_1_WHIP,
    SH_BRANCH_2_WHIP,
    SH_WIND_PACK0,
    SH_WIND_PACK1,
    SH_WIND_ANCHOR_X,
    SH_WIND_ANCHOR_Y,
    SH_WIND_ANCHOR_Z,
    SH_WIND_PACK2,
    SH_GLOBAL_DIRECTION_ADHERENCE,
    SH_BRANCH_1_DIRECTION_ADHERENCE,
    SH_BRANCH_2_DIRECTION_ADHERENCE,
    SH_WIND_PACK5,
    SH_BRANCH_1_TURBULENCE,
    SH_BRANCH_2_TURBULENCE,
    SH_WIND_PACK6,
    SH_WIND_PACK7,
    SH_LEAF_1_RIPPLE_TIME,
    SH_LEAF_1_RIPPLE_DISTANCE,
    SH_LEAF_1_LEEWARD_SCALAR,
    SH_WIND_PACK8,
    SH_LEAF_1_TUMBLE_TIME,
    SH_LEAF_1_TUMBLE_FLIP,
    SH_LEAF_1_TUMBLE_TWIST,
    SH_LEAF_1_TUMBLE_DIRECTION_ADHERENCE,
    SH_LEAF_1_TWITCH_THROW,
    SH_LEAF_1_TWITCH_SHARPNESS,
    SH_LEAF_1_TWITCH_TIME,
    SH_WIND_PACK9,
    SH_LEAF_2_RIPPLE_TIME,
    SH_LEAF_2_RIPPLE_DISTANCE,
    SH_LEAF_2_LEEWARD_SCALAR,
    SH_WIND_PACK10,
    SH_LEAF_2_TUMBLE_TIME,
    SH_LEAF_2_TUMBLE_FLIP,
    SH_LEAF_2_TUMBLE_TWIST,
    SH_LEAF_2_TUMBLE_DIRECTION_ADHERENCE,
    SH_LEAF_2_TWITCH_THROW,
    SH_LEAF_2_TWITCH_SHARPNESS,
    SH_LEAF_2_TWITCH_TIME,
    SH_WIND_PACK11,
    SH_FROND_RIPPLE_TIME,
    SH_FROND_RIPPLE_DISTANCE,
    SH_FROND_RIPPLE_TILE,
    SH_FROND_RIPPLE_LIGHTING_SCALAR,
    SH_ROLLING_BRANCH_FIELD_MIN,
    SH_ROLLING_BRANCH_LIGHTING_ADJUST,
    SH_ROLLING_BRANCH_VERTICAL_OFFSET,
    SH_WIND_PACK12,
    SH_ROLLING_LEAF_RIPPLE_MIN,
    SH_ROLLING_LEAF_TUMBLE_MIN,
    SH_ROLLING_X,
    SH_ROLLING_Y,
    SH_ROLLING_NOISE_PERIOD,
    SH_ROLLING_NOISE_SIZE,
    SH_ROLLING_NOISE_TURBULENCE,
    SH_ROLLING_NOISE_TWIST,
    NUM_SHADER_VALUES,
}

Values

Name

Description

SH_WIND_DIR_X

G_vWindVector

SH_WIND_DIR_Y

SH_WIND_DIR_Z

SH_GENERAL_STRENGTH

SH_GLOBAL_TIME

G_vWindGlobal

SH_GLOBAL_DISTANCE

SH_GLOBAL_HEIGHT

SH_GLOBAL_HEIGHT_EXPONENT

SH_BRANCH_1_TIME

G_vWindBranch

SH_BRANCH_1_DISTANCE

SH_BRANCH_2_TIME

SH_BRANCH_2_DISTANCE

SH_BRANCH_1_TWITCH

G_vWindBranchTwitch

SH_BRANCH_1_TWITCH_FREQ_SCALE

SH_BRANCH_2_TWITCH

SH_BRANCH_2_TWITCH_FREQ_SCALE

SH_BRANCH_1_WHIP

G_vWindBranchWhip

SH_BRANCH_2_WHIP

SH_WIND_PACK0

SH_WIND_PACK1

SH_WIND_ANCHOR_X

G_vWindBranchAnchor

SH_WIND_ANCHOR_Y

SH_WIND_ANCHOR_Z

SH_WIND_PACK2

SH_GLOBAL_DIRECTION_ADHERENCE

G_vWindBranchAdherences

SH_BRANCH_1_DIRECTION_ADHERENCE

SH_BRANCH_2_DIRECTION_ADHERENCE

SH_WIND_PACK5

SH_BRANCH_1_TURBULENCE

G_vWindTurbulences

SH_BRANCH_2_TURBULENCE

SH_WIND_PACK6

SH_WIND_PACK7

SH_LEAF_1_RIPPLE_TIME

G_vWindLeaf1Ripple

SH_LEAF_1_RIPPLE_DISTANCE

SH_LEAF_1_LEEWARD_SCALAR

SH_WIND_PACK8

SH_LEAF_1_TUMBLE_TIME

G_vWindLeaf1Tumble

SH_LEAF_1_TUMBLE_FLIP

SH_LEAF_1_TUMBLE_TWIST

SH_LEAF_1_TUMBLE_DIRECTION_ADHERENCE

SH_LEAF_1_TWITCH_THROW

G_vWindLeaf1Twitch

SH_LEAF_1_TWITCH_SHARPNESS

SH_LEAF_1_TWITCH_TIME

SH_WIND_PACK9

SH_LEAF_2_RIPPLE_TIME

G_vWindLeaf2Ripple

SH_LEAF_2_RIPPLE_DISTANCE

SH_LEAF_2_LEEWARD_SCALAR

SH_WIND_PACK10

SH_LEAF_2_TUMBLE_TIME

G_vWindLeaf2Tumble

SH_LEAF_2_TUMBLE_FLIP

SH_LEAF_2_TUMBLE_TWIST

SH_LEAF_2_TUMBLE_DIRECTION_ADHERENCE

SH_LEAF_2_TWITCH_THROW

G_vWindLeaf2Twitch

SH_LEAF_2_TWITCH_SHARPNESS

SH_LEAF_2_TWITCH_TIME

SH_WIND_PACK11

SH_FROND_RIPPLE_TIME

G_vWindFrondRipple

SH_FROND_RIPPLE_DISTANCE

SH_FROND_RIPPLE_TILE

SH_FROND_RIPPLE_LIGHTING_SCALAR

SH_ROLLING_BRANCH_FIELD_MIN

G_vWindRollingBranch

SH_ROLLING_BRANCH_LIGHTING_ADJUST

SH_ROLLING_BRANCH_VERTICAL_OFFSET

SH_WIND_PACK12

SH_ROLLING_LEAF_RIPPLE_MIN

G_vWindRollingLeafAndDir

SH_ROLLING_LEAF_TUMBLE_MIN

SH_ROLLING_X

SH_ROLLING_Y

SH_ROLLING_NOISE_PERIOD

G_vWindRollingNoise

SH_ROLLING_NOISE_SIZE

SH_ROLLING_NOISE_TURBULENCE

SH_ROLLING_NOISE_TWIST

NUM_SHADER_VALUES

Total values, including packing

Remarks

Values to be uploaded as shader constants

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback