From 0cc5a3d3204ac05f28a98fb56e3c50cada172815 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Sat, 20 Jun 2020 20:11:50 +0900 Subject: [PATCH] Fix shadows missing. --- assets/Materials/Light.j3m | 9 ++++++ assets/Materials/newMatDef.j3md | 34 +++++++++++++++++++++ assets/Materials/neweffect_gradient.png | Bin 0 -> 3917 bytes assets/Scenes/TestLevel.j3o | Bin 92334 -> 92281 bytes src/mygame/appstate/RunLevel.java | 39 +++++++++++++++++------- src/mygame/control/PhysicsControl.java | 6 ++-- 6 files changed, 75 insertions(+), 13 deletions(-) create mode 100644 assets/Materials/Light.j3m create mode 100644 assets/Materials/newMatDef.j3md create mode 100644 assets/Materials/neweffect_gradient.png diff --git a/assets/Materials/Light.j3m b/assets/Materials/Light.j3m new file mode 100644 index 0000000..4b005e4 --- /dev/null +++ b/assets/Materials/Light.j3m @@ -0,0 +1,9 @@ +Material My Material : Common/MatDefs/Light/Lighting.j3md { + MaterialParameters { + Ambient : 1.0 1.0 1.0 1.0 + Diffuse : 0.6 0.0 0.6 1.0 + VertexLighting : false + } + AdditionalRenderState { + } +} diff --git a/assets/Materials/newMatDef.j3md b/assets/Materials/newMatDef.j3md new file mode 100644 index 0000000..bf70b1e --- /dev/null +++ b/assets/Materials/newMatDef.j3md @@ -0,0 +1,34 @@ +MaterialDef Simple { + MaterialParameters { + Color Color + } + Technique { + WorldParameters { + WorldViewProjectionMatrix + } + VertexShaderNodes { + ShaderNode CommonVert { + Definition : CommonVert : Common/MatDefs/ShaderNodes/Common/CommonVert.j3sn + InputMappings { + worldViewProjectionMatrix = WorldParam.WorldViewProjectionMatrix + modelPosition = Global.position.xyz + } + OutputMappings { + Global.position = projPosition + } + } + } + FragmentShaderNodes { + ShaderNode ColorMult { + Definition : ColorMult : Common/MatDefs/ShaderNodes/Basic/ColorMult.j3sn + InputMappings { + color1 = MatParam.Color + color2 = Global.color + } + OutputMappings { + Global.color = outColor + } + } + } + } +} \ No newline at end of file diff --git a/assets/Materials/neweffect_gradient.png b/assets/Materials/neweffect_gradient.png new file mode 100644 index 0000000000000000000000000000000000000000..6a54b4da3c7fcb856af81cdd2fdc4e290d611725 GIT binary patch literal 3917 zcmaJ^`%jzK8U9ST8pO?kfVl)>FyK-O2}!s^FvggGF?VC2K)?hCOu!g05R+ZhsadP0 zRkbx*wXIdADO0*l+q9@lmQ|{fv|X3ANl@2`CY7q~*X3W>^Y9)ys6SMC-sioX^L^hr z@B5x(c>2L@m(#8{>NQQ%J389>pj#;MQQ+dlrytzbG#%JywYnTuYr#_B{H$-mt7)YO zh9Qj|pq5g=}$~4=!^`@oZ$E)fh4Jo5Zw* zBB5rxn8)}g1LQ1Z(JevnqqoJ}fU1FCJ)hHHoZ1O+okqAQ%AEw3TOi z+=~oT0H$(^Nh_WB_bq%K(%ghow zEGmU*jfTtwG9*$3b##CQd2sF`OdzcQl(=(Uyzqi(W&lVU^L2Ax zEaU>@MgKXl334_E1S~R;&($ADY5*73g7)J89HydsM51f~&*~NzBG7g851&3Mc44JQ zjN?%2>tYMHUu+hG`CL8&szU=OEOm^mXj-CyqSItX76#&ij&55V{Mgh(m8E_dn-C0S z2W{@4^}OHjT?}g0fOjhBohexN1?LLvj&9d5CM6%zG;Y|@c4}Y_8u0A?09=ry(jvie zQQ$7~^J1@sme@b1A&C+ZR}u62V<$$Sa0oGZFN89E&jU&oH31++sJ z#RTUWLDmh>lXvDvBjFEU6SJYGU>26q$DRQAAak3e-q4o>C!lfP?46P>Pz{&igOo9> z+Jy^@fK^ec^e{>DrYO4WsV((TD>S|7gKYY}l|chsH^4pwS_VO8wP9XC(cxUSiNFOF z7X-1;_MTGkkxg}$a`IB)0?CjyKGQnfGy}!_s5x0M0bUTma&AaHQq1P7lxPZ68vS#s ziW$5HSUSOzTTL-y<+iKn*EjTe)2&=B;A8^`V!1$%*zG)!yMF}*IwZpTf{m}f`{kt} ziM#5cRR$#D&ry$v8-h~l`qwM49ahjJq`ImQ%sQ%`n7D9p$*#Jl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