|
Post by WhyNot on Jun 18, 2016 4:22:43 GMT
Guys I need help with custom shaders in 3d rad. OK, I'm a noob to HLSL. so, I tried the hlsl shader codes from google. and Nvidia's web page. non of em work one of them: #define BLOCKER_SEARCH_NUM_SAMPLES 16 #define PCF_NUM_SAMPLES 16 #define NEAR_PLANE 9.5 #define LIGHT_WORLD_SIZE .5 #define LIGHT_FRUSTUM_WIDTH 3.75 // Assuming that LIGHT_FRUSTUM_WIDTH == LIGHT_FRUSTUM_HEIGHT #define LIGHT_SIZE_UV (LIGHT_WORLD_SIZE / LIGHT_FRUSTUM_WIDTH) Texture2D<float> tDepthMap; cbuffer POISSON_DISKS { float2 poissonDisk[16] = { float2( -0.94201624, -0.39906216 ), float2( 0.94558609, -0.76890725 ), float2( -0.094184101, -0.92938870 ), float2( 0.34495938, 0.29387760 ), float2( -0.91588581, 0.45771432 ), float2( -0.81544232, -0.87912464 ), float2( -0.38277543, 0.27676845 ), float2( 0.97484398, 0.75648379 ), float2( 0.44323325, -0.97511554 ), float2( 0.53742981, -0.47373420 ), float2( -0.26496911, -0.41893023 ), float2( 0.79197514, 0.19090188 ), float2( -0.24188840, 0.99706507 ), float2( -0.81409955, 0.91437590 ), float2( 0.19984126, 0.78641367 ), float2( 0.14383161, -0.14100790 ) }; }; OK, this one doesn't show any errors but doesn't work. finally, is there any way to use .fx files as shaders in 3d rad the default shaders are in those extensions but how to create custom shaders ??
|
|
|
Post by Power Supersport on Jun 25, 2016 8:42:25 GMT
Not the one who should reply, because I don't know HLSL neither GLSL... But I just want to tell you that implementing shaders from the NVidia site into 3D Rad is hard... I tried it myself and it turned out very hard... And another thing is that unfortunately, in this forum I don't think there is someone that is expert in shader languages... Shadmar was, genetransfer was, but they're all gone now...
|
|