C# 클래스 GPUGraph.GraphUtils

Provides support for saving/loading things like Graphs and shaders. It is recommended to just use RuntimeGraph instead of using this class directly.
파일 보기 프로젝트 열기: heyx3/GPUNoiseForUnity 1 사용 예제들

공개 메소드들

메소드 설명
GenerateToArray ( float outData, Material noiseMat ) : void

Uses the given noise material to generate noise into the given array.

GenerateToTexture ( RenderTexture rendTarget, Material noiseMat, Texture2D copyTo = null ) : void

Renders the given material into the given render target using a full-screen quad. Assumes the material uses a shader generated from a Graph. Optionally copies the resulting texture data into a Texture2D for further processing.

비공개 메소드들

메소드 설명
SetUpColorTex ( int width, int height ) : void

메소드 상세

GenerateToArray() 공개 정적인 메소드

Uses the given noise material to generate noise into the given array.
public static GenerateToArray ( float outData, Material noiseMat ) : void
outData float
noiseMat UnityEngine.Material
리턴 void

GenerateToTexture() 공개 정적인 메소드

Renders the given material into the given render target using a full-screen quad. Assumes the material uses a shader generated from a Graph. Optionally copies the resulting texture data into a Texture2D for further processing.
public static GenerateToTexture ( RenderTexture rendTarget, Material noiseMat, Texture2D copyTo = null ) : void
rendTarget UnityEngine.RenderTexture /// If set to "null", the noise will be rendered onto the screen. ///
noiseMat UnityEngine.Material
copyTo UnityEngine.Texture2D
리턴 void