Created
December 14, 2018 08:43
-
-
Save baobao/caf36b9c21c2bec0ce36da47199ad703 to your computer and use it in GitHub Desktop.
Unity2018.2.11f1で作成したComputeShaderのデフォルト状態
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma kernel CSMain | |
RWTexture2D<float4> Result; | |
[numthreads(8,8,1)] | |
void CSMain (uint3 id : SV_DispatchThreadID) | |
{ | |
Result[id.xy] = float4(id.x & id.y, (id.x & 15)/15.0, (id.y & 15)/15.0, 0.0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment