Class PQSJobUtil
public class PQSJobUtil
- Inheritance
-
PQSJobUtil
- Inherited Members
- Extension Methods
Constructors
PQSJobUtil()
public PQSJobUtil()
Methods
BiquadraticSample(Vector2, NativeArray<ushort>, int, int, int)
public static float BiquadraticSample(Vector2 uv, NativeArray<ushort> heightMap, int width, int height, int offset = 0)
Parameters
Returns
DoDecals(Vector2, Vector3, NativeList<DecalInstance>, NativeArray<ushort>, int, int, NativeArray<ushort>, int, int)
public static float DoDecals(Vector2 uv, Vector3 vertexPos, NativeList<DecalInstance> decalInstances, NativeArray<ushort> declaHeights, int decalHeightsSizeX, int decalHeightsSizeY, NativeArray<ushort> decalAlpha, int decalAlphaSizeX, int decalAlphaSizeY)
Parameters
uvVector2vertexPosVector3decalInstancesNativeList<DecalInstance>declaHeightsNativeArray<ushort>decalHeightsSizeXintdecalHeightsSizeYintdecalAlphaNativeArray<ushort>decalAlphaSizeXintdecalAlphaSizeYint
Returns
FixPoleDistortion(float, float, Vector3, float, float, float, float, float, float, float, float, float, float)
public static float FixPoleDistortion(float height, float nearness, Vector3 dir, float northRadius, float northHeightOffset, float northNoiseFreq, float northNoiseScale, float northFalloff, float southRadius, float southHeightOffset, float southNoiseFreq, float southNoiseScale, float southFalloff)
Parameters
heightfloatnearnessfloatdirVector3northRadiusfloatnorthHeightOffsetfloatnorthNoiseFreqfloatnorthNoiseScalefloatnorthFallofffloatsouthRadiusfloatsouthHeightOffsetfloatsouthNoiseFreqfloatsouthNoiseScalefloatsouthFallofffloat
Returns
GetSphericalUVsForLatLong(double, double)
public static double2 GetSphericalUVsForLatLong(double latitude, double longitude)
Parameters
Returns
- double2
GetSphericalUVsForLatLongSingle(double, double)
public static Vector2 GetSphericalUVsForLatLongSingle(double latitude, double longitude)
Parameters
Returns
- Vector2
GetVertexSphericalUVs(Vector3)
public static Vector2 GetVertexSphericalUVs(Vector3 dir)
Parameters
dirVector3
Returns
- Vector2
GetVertexSphericalUVsForQuad(double3, Vector3)
public static double2 GetVertexSphericalUVsForQuad(double3 dir, Vector3 quadPos)
Parameters
dirdouble3quadPosVector3
Returns
- double2
HeightSample(Vector2, Vector3, float, PQS)
public static float HeightSample(Vector2 uv, Vector3 dir, float nearness, PQS owner)
Parameters
Returns
HeightSample(Vector2, Vector3, NativeList<DecalInstance>, NativeArray<ushort>, int, int, NativeArray<ushort>, int, int, NativeArray<ushort>, int, int, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, NativeArray<ushort>, int, int, float, float, float, float, NativeArray<Color32>, int, int, float, float, float, float, float, float, float, float, float, float, float, bool)
public static float HeightSample(Vector2 uv, Vector3 dir, NativeList<DecalInstance> decalInstances, NativeArray<ushort> decalArray, int decalArraySizeX, int decalArraySizeY, NativeArray<ushort> decalAlpha, int decalAlphaSizeX, int decalAlphaSizeY, NativeArray<ushort> globalHeightMap, int globalWidth, int globalHeight, float globalMapScale, NativeArray<ushort> largeMapR, int largeMapWidthR, int largeMapHeightR, float largeUVScaleR, float largeHeightScaleR, NativeArray<ushort> largeMapG, int largeMapWidthG, int largeMapHeightG, float largeUVScaleG, float largeHeightScaleG, NativeArray<ushort> largeMapB, int largeMapWidthB, int largeMapHeightB, float largeUVScaleB, float largeHeightScaleB, NativeArray<ushort> largeMapA, int largeMapWidthA, int largeMapHeightA, float largeUVScaleA, float largeHeightScaleA, NativeArray<ushort> mediumMapR, int mediumMapWidthR, int mediumMapHeightR, float mediumUVScaleR, float mediumHeightScaleR, NativeArray<ushort> mediumMapG, int mediumMapWidthG, int mediumMapHeightG, float mediumUVScaleG, float mediumHeightScaleG, NativeArray<ushort> mediumMapB, int mediumMapWidthB, int mediumMapHeightB, float mediumUVScaleB, float mediumHeightScaleB, NativeArray<ushort> mediumMapA, int mediumMapWidthA, int mediumMapHeightA, float mediumUVScaleA, float mediumHeightScaleA, float tiledHeightMapContrast, float sphereRadius, NativeArray<Color32> mask, int maskWidth, int maskHeight, float poleNearness, float northRadius, float northHeightOffset, float northNoiseFreq, float northNoiseScale, float northFalloff, float southRadius, float southHeightOffset, float southNoiseFreq, float southNoiseScale, float southFalloff, bool onlyGlobalHeight = false)
Parameters
uvVector2dirVector3decalInstancesNativeList<DecalInstance>decalArrayNativeArray<ushort>decalArraySizeXintdecalArraySizeYintdecalAlphaNativeArray<ushort>decalAlphaSizeXintdecalAlphaSizeYintglobalHeightMapNativeArray<ushort>globalWidthintglobalHeightintglobalMapScalefloatlargeMapRNativeArray<ushort>largeMapWidthRintlargeMapHeightRintlargeUVScaleRfloatlargeHeightScaleRfloatlargeMapGNativeArray<ushort>largeMapWidthGintlargeMapHeightGintlargeUVScaleGfloatlargeHeightScaleGfloatlargeMapBNativeArray<ushort>largeMapWidthBintlargeMapHeightBintlargeUVScaleBfloatlargeHeightScaleBfloatlargeMapANativeArray<ushort>largeMapWidthAintlargeMapHeightAintlargeUVScaleAfloatlargeHeightScaleAfloatmediumMapRNativeArray<ushort>mediumMapWidthRintmediumMapHeightRintmediumUVScaleRfloatmediumHeightScaleRfloatmediumMapGNativeArray<ushort>mediumMapWidthGintmediumMapHeightGintmediumUVScaleGfloatmediumHeightScaleGfloatmediumMapBNativeArray<ushort>mediumMapWidthBintmediumMapHeightBintmediumUVScaleBfloatmediumHeightScaleBfloatmediumMapANativeArray<ushort>mediumMapWidthAintmediumMapHeightAintmediumUVScaleAfloatmediumHeightScaleAfloattiledHeightMapContrastfloatsphereRadiusfloatmaskNativeArray<Color32>maskWidthintmaskHeightintpoleNearnessfloatnorthRadiusfloatnorthHeightOffsetfloatnorthNoiseFreqfloatnorthNoiseScalefloatnorthFallofffloatsouthRadiusfloatsouthHeightOffsetfloatsouthNoiseFreqfloatsouthNoiseScalefloatsouthFallofffloatonlyGlobalHeightbool
Returns
RangeFilter(float, Vector4)
public static float RangeFilter(float v, Vector4 range)
Parameters
vfloatrangeVector4