Skip to content

Commit

Permalink
一時的な修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronoss0518 committed Apr 13, 2022
1 parent a456c77 commit 132d7fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ChCppLibrary/Direct3D11/ChShader/ChShader11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ void ShaderController11::DrawStart()
dc->ClearRenderTargetView(out3D.GetRTView(), backColor.val.GetVal());
dc->ClearRenderTargetView(out2D.GetRTView(), tmpCol.val.GetVal());

out3D.SetDrawData(dc, 12);
//out3D.SetDrawData(dc, 12);

rtDrawFlg = false;
}

view.SetDrawData(dc);

lightDatas.SetPSDrawData(dc);
lightDatas.SetDrawData(dc);

dc->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);

Expand Down
1 change: 1 addition & 0 deletions ChCppLibrary/Direct3D11/ChShaderParts/ChShaderParts11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ void ChLightHeader::Init(ID3D11Device* _device)

buf.CreateBuffer(_device, 10);


{
ChVec4 tmpCol[256];

Expand Down
3 changes: 2 additions & 1 deletion Shaders/D3D11/ShaderParts/Light.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ cbuffer LightData :register(b10)
texture2D LightPowMap :register(t10);

//画像から1ピクセルの色を取得するための物//
sampler LightSmp :register(s10) = sampler_state {
sampler LightSmp :register(s10)
= sampler_state{
Filter = MIN_MAG_MIP_LINEAR;
AddressU = Clamp;
AddressV = Clamp;
Expand Down

0 comments on commit 132d7fb

Please sign in to comment.