Table of Contents

Class PQSJobUtil

Namespace
KSP.Rendering.Planets
Assembly
Assembly-CSharp.dll
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

uv Vector2
heightMap NativeArray<ushort>
width int
height int
offset int

Returns

float

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

uv Vector2
vertexPos Vector3
decalInstances NativeList<DecalInstance>
declaHeights NativeArray<ushort>
decalHeightsSizeX int
decalHeightsSizeY int
decalAlpha NativeArray<ushort>
decalAlphaSizeX int
decalAlphaSizeY int

Returns

float

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

height float
nearness float
dir Vector3
northRadius float
northHeightOffset float
northNoiseFreq float
northNoiseScale float
northFalloff float
southRadius float
southHeightOffset float
southNoiseFreq float
southNoiseScale float
southFalloff float

Returns

float

GetSphericalUVsForLatLong(double, double)

public static double2 GetSphericalUVsForLatLong(double latitude, double longitude)

Parameters

latitude double
longitude double

Returns

double2

GetSphericalUVsForLatLongSingle(double, double)

public static Vector2 GetSphericalUVsForLatLongSingle(double latitude, double longitude)

Parameters

latitude double
longitude double

Returns

Vector2

GetVertexSphericalUVs(Vector3)

public static Vector2 GetVertexSphericalUVs(Vector3 dir)

Parameters

dir Vector3

Returns

Vector2

GetVertexSphericalUVsForQuad(double3, Vector3)

public static double2 GetVertexSphericalUVsForQuad(double3 dir, Vector3 quadPos)

Parameters

dir double3
quadPos Vector3

Returns

double2

HeightSample(Vector2, Vector3, float, PQS)

public static float HeightSample(Vector2 uv, Vector3 dir, float nearness, PQS owner)

Parameters

uv Vector2
dir Vector3
nearness float
owner PQS

Returns

float

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

uv Vector2
dir Vector3
decalInstances NativeList<DecalInstance>
decalArray NativeArray<ushort>
decalArraySizeX int
decalArraySizeY int
decalAlpha NativeArray<ushort>
decalAlphaSizeX int
decalAlphaSizeY int
globalHeightMap NativeArray<ushort>
globalWidth int
globalHeight int
globalMapScale float
largeMapR NativeArray<ushort>
largeMapWidthR int
largeMapHeightR int
largeUVScaleR float
largeHeightScaleR float
largeMapG NativeArray<ushort>
largeMapWidthG int
largeMapHeightG int
largeUVScaleG float
largeHeightScaleG float
largeMapB NativeArray<ushort>
largeMapWidthB int
largeMapHeightB int
largeUVScaleB float
largeHeightScaleB float
largeMapA NativeArray<ushort>
largeMapWidthA int
largeMapHeightA int
largeUVScaleA float
largeHeightScaleA float
mediumMapR NativeArray<ushort>
mediumMapWidthR int
mediumMapHeightR int
mediumUVScaleR float
mediumHeightScaleR float
mediumMapG NativeArray<ushort>
mediumMapWidthG int
mediumMapHeightG int
mediumUVScaleG float
mediumHeightScaleG float
mediumMapB NativeArray<ushort>
mediumMapWidthB int
mediumMapHeightB int
mediumUVScaleB float
mediumHeightScaleB float
mediumMapA NativeArray<ushort>
mediumMapWidthA int
mediumMapHeightA int
mediumUVScaleA float
mediumHeightScaleA float
tiledHeightMapContrast float
sphereRadius float
mask NativeArray<Color32>
maskWidth int
maskHeight int
poleNearness float
northRadius float
northHeightOffset float
northNoiseFreq float
northNoiseScale float
northFalloff float
southRadius float
southHeightOffset float
southNoiseFreq float
southNoiseScale float
southFalloff float
onlyGlobalHeight bool

Returns

float

RangeFilter(float, Vector4)

public static float RangeFilter(float v, Vector4 range)

Parameters

v float
range Vector4

Returns

float