Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 310 es
- layout(set = 0, binding = 1, std140) uniform Primitive
- {
- mat4 Primitive_LocalToWorld;
- mat4 Primitive_WorldToLocal;
- vec4 Primitive_ObjectWorldPositionAndRadius;
- vec3 Primitive_ObjectBounds;
- float Primitive_LocalToWorldDeterminantSign;
- vec3 Primitive_ActorWorldPosition;
- float Primitive_DecalReceiverMask;
- float Primitive_PerObjectGBufferData;
- float Primitive_UseSingleSampleShadowFromStationaryLights;
- float Primitive_UseVolumetricLightmapShadowFromStationaryLights;
- float Primitive_UseEditorDepthTest;
- vec4 Primitive_ObjectOrientation;
- vec4 Primitive_NonUniformScale;
- vec4 Primitive_InvNonUniformScale;
- vec3 Primitive_LocalObjectBoundsMin;
- float PrePadding_Primitive_252;
- vec3 Primitive_LocalObjectBoundsMax;
- uint Primitive_LightingChannelMask;
- float Primitive_LpvBiasMultiplier;
- } _37;
- layout(set = 0, binding = 0, std140) uniform View
- {
- mat4 View_TranslatedWorldToClip;
- mat4 View_WorldToClip;
- mat4 View_TranslatedWorldToView;
- mat4 View_ViewToTranslatedWorld;
- mat4 View_TranslatedWorldToCameraView;
- mat4 View_CameraViewToTranslatedWorld;
- mat4 View_ViewToClip;
- mat4 View_ViewToClipNoAA;
- mat4 View_ClipToView;
- mat4 View_ClipToTranslatedWorld;
- mat4 View_SVPositionToTranslatedWorld;
- mat4 View_ScreenToWorld;
- mat4 View_ScreenToTranslatedWorld;
- vec3 View_ViewForward;
- float PrePadding_View_844;
- vec3 View_ViewUp;
- float PrePadding_View_860;
- vec3 View_ViewRight;
- float PrePadding_View_876;
- vec3 View_HMDViewNoRollUp;
- float PrePadding_View_892;
- vec3 View_HMDViewNoRollRight;
- float PrePadding_View_908;
- vec4 View_InvDeviceZToWorldZTransform;
- vec4 View_ScreenPositionScaleBias;
- vec3 View_WorldCameraOrigin;
- float PrePadding_View_956;
- vec3 View_TranslatedWorldCameraOrigin;
- float PrePadding_View_972;
- vec3 View_WorldViewOrigin;
- float PrePadding_View_988;
- vec3 View_PreViewTranslation;
- float PrePadding_View_1004;
- mat4 View_PrevProjection;
- mat4 View_PrevViewProj;
- mat4 View_PrevViewRotationProj;
- mat4 View_PrevViewToClip;
- mat4 View_PrevClipToView;
- mat4 View_PrevTranslatedWorldToClip;
- mat4 View_PrevTranslatedWorldToView;
- mat4 View_PrevViewToTranslatedWorld;
- mat4 View_PrevTranslatedWorldToCameraView;
- mat4 View_PrevCameraViewToTranslatedWorld;
- vec3 View_PrevWorldCameraOrigin;
- float PrePadding_View_1660;
- vec3 View_PrevWorldViewOrigin;
- float PrePadding_View_1676;
- vec3 View_PrevPreViewTranslation;
- float PrePadding_View_1692;
- mat4 View_PrevInvViewProj;
- mat4 View_PrevScreenToTranslatedWorld;
- mat4 View_ClipToPrevClip;
- vec4 View_TemporalAAJitter;
- vec4 View_GlobalClippingPlane;
- vec2 View_FieldOfViewWideAngles;
- vec2 View_PrevFieldOfViewWideAngles;
- vec4 View_ViewRectMin;
- vec4 View_ViewSizeAndInvSize;
- vec4 View_BufferSizeAndInvSize;
- vec4 View_BufferBilinearUVMinMax;
- int View_NumSceneColorMSAASamples;
- float View_PreExposure;
- float View_OneOverPreExposure;
- float PrePadding_View_2012;
- vec4 View_DiffuseOverrideParameter;
- vec4 View_SpecularOverrideParameter;
- vec4 View_NormalOverrideParameter;
- vec2 View_RoughnessOverrideParameter;
- float View_PrevFrameGameTime;
- float View_PrevFrameRealTime;
- float View_OutOfBoundsMask;
- float PrePadding_View_2084;
- float PrePadding_View_2088;
- float PrePadding_View_2092;
- vec3 View_WorldCameraMovementSinceLastFrame;
- float View_CullingSign;
- float View_NearPlane;
- float View_AdaptiveTessellationFactor;
- float View_GameTime;
- float View_RealTime;
- float View_MaterialTextureMipBias;
- float View_MaterialTextureDerivativeMultiply;
- uint View_Random;
- uint View_FrameNumber;
- uint View_StateFrameIndexMod8;
- float View_CameraCut;
- float View_UnlitViewmodeMask;
- float PrePadding_View_2156;
- vec4 View_DirectionalLightColor;
- vec3 View_DirectionalLightDirection;
- float PrePadding_View_2188;
- vec4 View_TranslucencyLightingVolumeMin[2];
- vec4 View_TranslucencyLightingVolumeInvSize[2];
- vec4 View_TemporalAAParams;
- vec4 View_CircleDOFParams;
- float View_DepthOfFieldSensorWidth;
- float View_DepthOfFieldFocalDistance;
- float View_DepthOfFieldScale;
- float View_DepthOfFieldFocalLength;
- float View_DepthOfFieldFocalRegion;
- float View_DepthOfFieldNearTransitionRegion;
- float View_DepthOfFieldFarTransitionRegion;
- float View_MotionBlurNormalizedToPixel;
- float View_bSubsurfacePostprocessEnabled;
- float View_GeneralPurposeTweak;
- float View_DemosaicVposOffset;
- float PrePadding_View_2332;
- vec3 View_IndirectLightingColorScale;
- float View_HDR32bppEncodingMode;
- vec3 View_AtmosphericFogSunDirection;
- float View_AtmosphericFogSunPower;
- float View_AtmosphericFogPower;
- float View_AtmosphericFogDensityScale;
- float View_AtmosphericFogDensityOffset;
- float View_AtmosphericFogGroundOffset;
- float View_AtmosphericFogDistanceScale;
- float View_AtmosphericFogAltitudeScale;
- float View_AtmosphericFogHeightScaleRayleigh;
- float View_AtmosphericFogStartDistance;
- float View_AtmosphericFogDistanceOffset;
- float View_AtmosphericFogSunDiscScale;
- uint View_AtmosphericFogRenderMask;
- uint View_AtmosphericFogInscatterAltitudeSampleNum;
- vec4 View_AtmosphericFogSunColor;
- vec3 View_NormalCurvatureToRoughnessScaleBias;
- float View_RenderingReflectionCaptureMask;
- vec4 View_AmbientCubemapTint;
- float View_AmbientCubemapIntensity;
- float View_SkyLightParameters;
- float PrePadding_View_2472;
- float PrePadding_View_2476;
- vec4 View_SkyLightColor;
- vec4 View_SkyIrradianceEnvironmentMap[7];
- float View_MobilePreviewMode;
- float View_HMDEyePaddingOffset;
- float View_ReflectionCubemapMaxMip;
- float View_ShowDecalsMask;
- uint View_DistanceFieldAOSpecularOcclusionMode;
- float View_IndirectCapsuleSelfShadowingIntensity;
- float PrePadding_View_2632;
- float PrePadding_View_2636;
- vec3 View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight;
- int View_StereoPassIndex;
- vec4 View_GlobalVolumeCenterAndExtent[4];
- vec4 View_GlobalVolumeWorldToUVAddAndMul[4];
- float View_GlobalVolumeDimension;
- float View_GlobalVolumeTexelSize;
- float View_MaxGlobalDistance;
- float View_bCheckerboardSubsurfaceProfileRendering;
- vec3 View_VolumetricFogInvGridSize;
- float PrePadding_View_2812;
- vec3 View_VolumetricFogGridZParams;
- float PrePadding_View_2828;
- vec2 View_VolumetricFogSVPosToVolumeUV;
- float View_VolumetricFogMaxDistance;
- float PrePadding_View_2844;
- vec3 View_VolumetricLightmapWorldToUVScale;
- float PrePadding_View_2860;
- vec3 View_VolumetricLightmapWorldToUVAdd;
- float PrePadding_View_2876;
- vec3 View_VolumetricLightmapIndirectionTextureSize;
- float View_VolumetricLightmapBrickSize;
- vec3 View_VolumetricLightmapBrickTexelSize;
- float View_StereoIPD;
- } _119;
- layout(set = 0, binding = 2, std140) uniform PrecomputedLightingBuffer
- {
- vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd;
- float PrePadding_PrecomputedLightingBuffer_12;
- vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale;
- float PrePadding_PrecomputedLightingBuffer_28;
- vec3 PrecomputedLightingBuffer_IndirectLightingCacheMinUV;
- float PrePadding_PrecomputedLightingBuffer_44;
- vec3 PrecomputedLightingBuffer_IndirectLightingCacheMaxUV;
- float PrePadding_PrecomputedLightingBuffer_60;
- vec4 PrecomputedLightingBuffer_PointSkyBentNormal;
- float PrecomputedLightingBuffer_DirectionalLightShadowing;
- float PrePadding_PrecomputedLightingBuffer_84;
- float PrePadding_PrecomputedLightingBuffer_88;
- float PrePadding_PrecomputedLightingBuffer_92;
- vec4 PrecomputedLightingBuffer_StaticShadowMapMasks;
- vec4 PrecomputedLightingBuffer_InvUniformPenumbraSizes;
- vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0[3];
- vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1[3];
- vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2;
- vec4 PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient;
- vec4 PrecomputedLightingBuffer_LightMapCoordinateScaleBias;
- vec4 PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias;
- vec4 PrecomputedLightingBuffer_LightMapScale[2];
- vec4 PrecomputedLightingBuffer_LightMapAdd[2];
- } _188;
- layout(location = 2) in vec4 in_ATTRIBUTE2;
- layout(location = 1) in vec3 in_ATTRIBUTE1;
- layout(location = 0) in vec4 in_ATTRIBUTE0;
- layout(location = 4) in vec2 in_ATTRIBUTE4;
- layout(location = 15) in vec2 in_ATTRIBUTE15;
- layout(location = 0) out vec4 out_TEXCOORD10;
- layout(location = 1) out vec4 out_TEXCOORD11;
- layout(location = 2) out vec4 out_TEXCOORD0;
- layout(location = 3) out vec4 out_TEXCOORD4;
- layout(location = 4) out vec4 out_TEXCOORD8;
- void main()
- {
- vec3 v3 = cross(cross(in_ATTRIBUTE2.xyz, in_ATTRIBUTE1) * in_ATTRIBUTE2.www, in_ATTRIBUTE2.xyz) * in_ATTRIBUTE2.www;
- mat3 m5;
- m5[0] = _37.Primitive_LocalToWorld[0].xyz;
- m5[1] = _37.Primitive_LocalToWorld[1].xyz;
- m5[2] = _37.Primitive_LocalToWorld[2].xyz;
- mat3 m4 = m5;
- m4[0] = m5[0] * _37.Primitive_InvNonUniformScale.xxx;
- m4[1] *= _37.Primitive_InvNonUniformScale.yyy;
- m4[2] *= _37.Primitive_InvNonUniformScale.zzz;
- vec4 v6;
- v6.w = 1.0;
- vec3 _125 = (((_37.Primitive_LocalToWorld[0].xyz * in_ATTRIBUTE0.xxx) + (_37.Primitive_LocalToWorld[1].xyz * in_ATTRIBUTE0.yyy)) + (_37.Primitive_LocalToWorld[2].xyz * in_ATTRIBUTE0.zzz)) + (_37.Primitive_LocalToWorld[3].xyz + _119.View_PreViewTranslation);
- v6 = vec4(_125.x, _125.y, _125.z, v6.w);
- vec4 v2 = v6;
- vec2 t7[1];
- t7[0] = vec2(0.0);
- t7[0] = in_ATTRIBUTE4;
- v2 = vec4(v6.xyz.x, v6.xyz.y, v6.xyz.z, v2.w);
- vec4 v8 = _119.View_TranslatedWorldToClip[3] + ((_119.View_TranslatedWorldToClip[2] * v2.zzzz) + ((_119.View_TranslatedWorldToClip[1] * v2.yyyy) + (_119.View_TranslatedWorldToClip[0] * v2.xxxx)));
- vec4 v1 = v2;
- vec4 t9[1];
- t9[0] = vec4(0.0);
- t9[0] = vec4(t7[0].x, t7[0].y, t9[0].z, t9[0].w);
- vec4 v10 = vec4(0.0);
- vec2 _197 = (in_ATTRIBUTE15 * _188.PrecomputedLightingBuffer_LightMapCoordinateScaleBias.xy) + _188.PrecomputedLightingBuffer_LightMapCoordinateScaleBias.zw;
- v10 = vec4(_197.x, _197.y, v10.z, v10.w);
- v10 = vec4(v10.x, v10.y, vec2(0.0).x, vec2(0.0).y);
- vec4 v11;
- v11.w = 0.0;
- vec3 _220 = (v3.zzz * m4[2]) + ((v3.yyy * m4[1]) + (v3.xxx * m4[0]));
- v11 = vec4(_220.x, _220.y, _220.z, v11.w);
- vec3 _240 = (in_ATTRIBUTE2.zzz * m4[2]) + ((in_ATTRIBUTE2.yyy * m4[1]) + (in_ATTRIBUTE2.xxx * m4[0]));
- vec4 v12;
- v12 = vec4(_240.x, _240.y, _240.z, v12.w);
- v12.w = in_ATTRIBUTE2.w * _37.Primitive_LocalToWorldDeterminantSign;
- v1.w = v8.w;
- vec4 v0 = v8;
- out_TEXCOORD10 = v11;
- out_TEXCOORD11 = v12;
- out_TEXCOORD0 = t9[0];
- out_TEXCOORD4 = v10;
- out_TEXCOORD8 = v1;
- v0.y = -v8.y;
- gl_Position = v0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement