• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision6158b1e636ea9b9497cd12cbffde6960b4cb29e9 (tree)
Time2018-09-23 06:30:39
AuthorMatias N. Goldberg <dark_ <sylinc@yaho...>
CommiterMatias N. Goldberg <dark_

Log Message

Ported latest Area light changes to HLSL & Metal

Change Summary

Incremental Difference

diff -r 3d2e4d2f0fac -r 6158b1e636ea Samples/Media/Hlms/Pbs/Any/AreaLights_LTC_piece_ps.any
--- a/Samples/Media/Hlms/Pbs/Any/AreaLights_LTC_piece_ps.any Sat Sep 22 18:21:40 2018 -0300
+++ b/Samples/Media/Hlms/Pbs/Any/AreaLights_LTC_piece_ps.any Sat Sep 22 18:30:39 2018 -0300
@@ -43,12 +43,12 @@
4343 uniform sampler2DArray ltcMatrix;
4444 @end
4545 @property( syntax == hlsl )
46- Texture2DArray<float4> ltcMatrix : register(t@value());
47- SamplerState ltcSampler : register(s@value());
46+ Texture2DArray<float4> ltcMatrix : register(t@value(ltcMatrixTexUnit));
47+ SamplerState ltcSampler : register(s@value(ltcMatrixTexUnit));
4848 @end
4949 @property( syntax == metal )
50- , texture2d_array<half> ltcMatrix [[texture(@value())]]
51- , sampler ltcSampler [[sampler(@value())]]
50+ , texture2d_array<half> ltcMatrix [[texture(@value(ltcMatrixTexUnit))]]
51+ , sampler ltcSampler [[sampler(@value(ltcMatrixTexUnit))]]
5252 @end
5353 @end
5454 @end
diff -r 3d2e4d2f0fac -r 6158b1e636ea Samples/Media/Hlms/Pbs/HLSL/Textures_piece_ps.hlsl
--- a/Samples/Media/Hlms/Pbs/HLSL/Textures_piece_ps.hlsl Sat Sep 22 18:21:40 2018 -0300
+++ b/Samples/Media/Hlms/Pbs/HLSL/Textures_piece_ps.hlsl Sat Sep 22 18:30:39 2018 -0300
@@ -32,6 +32,11 @@
3232 @add( texUnit, 1 )
3333 @end
3434
35+@property( hlms_lights_area_ltc )
36+ @set( ltcMatrixTexUnit, texUnit )
37+ @add( texUnit, 1 )
38+@end
39+
3540 @property( hlms_enable_decals )
3641 @set( decalsTexUnit, texUnit )
3742 @add( texUnit, hlms_enable_decals )
diff -r 3d2e4d2f0fac -r 6158b1e636ea Samples/Media/Hlms/Pbs/Metal/Textures_piece_ps.metal
--- a/Samples/Media/Hlms/Pbs/Metal/Textures_piece_ps.metal Sat Sep 22 18:21:40 2018 -0300
+++ b/Samples/Media/Hlms/Pbs/Metal/Textures_piece_ps.metal Sat Sep 22 18:30:39 2018 -0300
@@ -27,6 +27,11 @@
2727 @add( texUnit, 1 )
2828 @end
2929
30+@property( hlms_lights_area_ltc )
31+ @set( ltcMatrixTexUnit, texUnit )
32+ @add( texUnit, 1 )
33+@end
34+
3035 @property( hlms_enable_decals )
3136 @set( decalsTexUnit, texUnit )
3237 @add( texUnit, hlms_enable_decals )