ogre-python 14.2.3__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. Ogre/Bites.py +14 -0
  2. Ogre/Bullet.py +14 -0
  3. Ogre/Codec_Assimp.dll +0 -0
  4. Ogre/Codec_STBI.dll +0 -0
  5. Ogre/ImGui.py +12 -0
  6. Ogre/Numpy.py +59 -0
  7. Ogre/Ogre.py +12 -0
  8. Ogre/OgreBites.dll +0 -0
  9. Ogre/OgreBullet.dll +0 -0
  10. Ogre/OgreMain.dll +0 -0
  11. Ogre/OgreOverlay.dll +0 -0
  12. Ogre/OgrePaging.dll +0 -0
  13. Ogre/OgreRTShaderSystem.dll +0 -0
  14. Ogre/OgreTerrain.dll +0 -0
  15. Ogre/Overlay.py +14 -0
  16. Ogre/Plugin_DotScene.dll +0 -0
  17. Ogre/Plugin_GLSLangProgramManager.dll +0 -0
  18. Ogre/Plugin_OctreeSceneManager.dll +0 -0
  19. Ogre/Plugin_ParticleFX.dll +0 -0
  20. Ogre/RTShader.py +14 -0
  21. Ogre/RenderSystem_Direct3D11.dll +0 -0
  22. Ogre/RenderSystem_GL.dll +0 -0
  23. Ogre/RenderSystem_GL3Plus.dll +0 -0
  24. Ogre/RenderSystem_GLES2.dll +0 -0
  25. Ogre/RenderSystem_Tiny.dll +0 -0
  26. Ogre/RenderSystem_Vulkan.dll +0 -0
  27. Ogre/SDL2.dll +0 -0
  28. Ogre/Terrain.py +14 -0
  29. Ogre/_Bites.pyd +0 -0
  30. Ogre/_Bullet.pyd +0 -0
  31. Ogre/_ImGui.pyd +0 -0
  32. Ogre/_Ogre.pyd +0 -0
  33. Ogre/_Overlay.pyd +0 -0
  34. Ogre/_RTShader.pyd +0 -0
  35. Ogre/_Terrain.pyd +0 -0
  36. Ogre/__init__.py +2 -0
  37. Ogre/zlib.dll +0 -0
  38. ogre_python-14.2.3.data/data/Media/Main/DefaultShaders.metal +38 -0
  39. ogre_python-14.2.3.data/data/Media/Main/GLSL_GL3Support.glsl +97 -0
  40. ogre_python-14.2.3.data/data/Media/Main/HLSL_SM4Support.hlsl +98 -0
  41. ogre_python-14.2.3.data/data/Media/Main/OgreUnifiedShader.h +183 -0
  42. ogre_python-14.2.3.data/data/Media/Main/Shadow.material +85 -0
  43. ogre_python-14.2.3.data/data/Media/Main/ShadowBlend.frag +11 -0
  44. ogre_python-14.2.3.data/data/Media/Main/ShadowBlend.vert +12 -0
  45. ogre_python-14.2.3.data/data/Media/Main/ShadowExtrudeDirLight.vert +18 -0
  46. ogre_python-14.2.3.data/data/Media/Main/ShadowExtrudeDirLightFinite.vert +22 -0
  47. ogre_python-14.2.3.data/data/Media/Main/ShadowExtrudePointLight.vert +19 -0
  48. ogre_python-14.2.3.data/data/Media/Main/ShadowExtrudePointLightFinite.vert +22 -0
  49. ogre_python-14.2.3.data/data/Media/Main/ShadowVolumeExtude.program +41 -0
  50. ogre_python-14.2.3.data/data/Media/Main/spot_shadow_fade.dds +0 -0
  51. ogre_python-14.2.3.data/data/Media/RTShaderLib/FFPLib_AlphaTest.glsl +45 -0
  52. ogre_python-14.2.3.data/data/Media/RTShaderLib/FFPLib_Fog.glsl +92 -0
  53. ogre_python-14.2.3.data/data/Media/RTShaderLib/FFPLib_Texturing.glsl +144 -0
  54. ogre_python-14.2.3.data/data/Media/RTShaderLib/FFPLib_Transform.glsl +100 -0
  55. ogre_python-14.2.3.data/data/Media/RTShaderLib/RTSLib_IBL.glsl +88 -0
  56. ogre_python-14.2.3.data/data/Media/RTShaderLib/RTSLib_LTC.glsl +114 -0
  57. ogre_python-14.2.3.data/data/Media/RTShaderLib/RTSLib_Lighting.glsl +18 -0
  58. ogre_python-14.2.3.data/data/Media/RTShaderLib/RTSSamplers.material +17 -0
  59. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_CookTorrance.glsl +246 -0
  60. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_DualQuaternion.glsl +172 -0
  61. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_IntegratedPSSM.glsl +183 -0
  62. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_LayeredBlending.glsl +825 -0
  63. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_NormalMap.glsl +125 -0
  64. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_PerPixelLighting.glsl +172 -0
  65. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_TriplanarTexturing.glsl +47 -0
  66. ogre_python-14.2.3.data/data/Media/RTShaderLib/SGXLib_WBOIT.glsl +19 -0
  67. ogre_python-14.2.3.data/data/Media/RTShaderLib/dfgLUTmultiscatter.dds +0 -0
  68. ogre_python-14.2.3.data/data/Media/RTShaderLib/ltc_1.dds +0 -0
  69. ogre_python-14.2.3.data/data/Media/RTShaderLib/ltc_2.dds +0 -0
  70. ogre_python-14.2.3.data/data/Media/Terrain/TerrainSurface.glsl +83 -0
  71. ogre_python-14.2.3.data/data/Media/Terrain/TerrainTransforms.glsl +36 -0
  72. ogre_python-14.2.3.data/data/Media/packs/SdkTrays.zip +0 -0
  73. ogre_python-14.2.3.data/data/Media/packs/profiler.zip +0 -0
  74. ogre_python-14.2.3.data/data/bin/plugins.cfg +27 -0
  75. ogre_python-14.2.3.data/data/bin/resources.cfg +12 -0
  76. ogre_python-14.2.3.dist-info/AUTHORS +312 -0
  77. ogre_python-14.2.3.dist-info/LICENSE +21 -0
  78. ogre_python-14.2.3.dist-info/METADATA +125 -0
  79. ogre_python-14.2.3.dist-info/RECORD +81 -0
  80. ogre_python-14.2.3.dist-info/WHEEL +5 -0
  81. ogre_python-14.2.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,183 @@
1
+ /*
2
+ -----------------------------------------------------------------------------
3
+ This source file is part of OGRE
4
+ (Object-oriented Graphics Rendering Engine)
5
+ For the latest info, see http://www.ogre3d.org
6
+
7
+ Copyright (c) 2000-2014 Torus Knot Software Ltd
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+ -----------------------------------------------------------------------------
26
+ */
27
+ //-----------------------------------------------------------------------------
28
+ // Program Name: SGXLib_IntegratedPSSM
29
+ // Program Desc: Integrated PSSM functions.
30
+ // Program Type: Vertex/Pixel shader
31
+ // Language: GLSL
32
+ //-----------------------------------------------------------------------------
33
+
34
+ #ifdef PSSM_SAMPLE_CMP
35
+ #define SAMPLER_TYPE sampler2DShadow
36
+ #else
37
+ #define SAMPLER_TYPE sampler2D
38
+ #endif
39
+
40
+ // default to 2x2 PCF
41
+ #ifndef PCF_XSAMPLES
42
+ #define PCF_XSAMPLES 2.0
43
+ #endif
44
+
45
+ //-----------------------------------------------------------------------------
46
+ #ifdef SHADOWLIGHT_COUNT
47
+ void SGX_ApplyShadowFactor_Modulative(in vec4 ambient,
48
+ in float fShadowFactor[SHADOWLIGHT_COUNT],
49
+ inout vec4 diffCol
50
+ #ifdef USE_SPECULAR
51
+ , inout vec4 specCol
52
+ #endif
53
+ )
54
+ {
55
+ float shadowFactor = fShadowFactor[0];
56
+ for(int i = 1; i < SHADOWLIGHT_COUNT; ++i)
57
+ shadowFactor *= fShadowFactor[i];
58
+
59
+ diffCol.rgb = mix(ambient.rgb, diffCol.rgb, shadowFactor);
60
+
61
+ #ifdef USE_SPECULAR
62
+ specCol.rgb *= shadowFactor;
63
+ #endif
64
+ }
65
+ #endif
66
+
67
+ float sampleDepth(in SAMPLER_TYPE shadowMap, vec2 uv, float depth)
68
+ {
69
+ #ifdef PSSM_SAMPLE_CMP
70
+ # if defined(OGRE_GLSL) && OGRE_GLSL < 130
71
+ return shadow2D(shadowMap, vec3(uv, depth)).r;
72
+ # else
73
+ return shadow2D(shadowMap, vec3(uv, depth));
74
+ # endif
75
+ #else
76
+ return (depth <= texture2D(shadowMap, uv).r) ? 1.0 : 0.0;
77
+ #endif
78
+ }
79
+
80
+ //-----------------------------------------------------------------------------
81
+ #ifdef PSSM_SAMPLE_COLOUR
82
+ void SGX_ShadowPCF4(in sampler2D shadowMap, in vec4 shadowMapPos, in vec2 invTexSize, out float c)
83
+ {
84
+ c = texture2DProj(shadowMap, shadowMapPos).x;
85
+ }
86
+ #else
87
+ void SGX_ShadowPCF4(in SAMPLER_TYPE shadowMap, in vec4 shadowMapPos, in vec2 invTexSize, out float c)
88
+ {
89
+ shadowMapPos = shadowMapPos / shadowMapPos.w;
90
+ #if !defined(OGRE_REVERSED_Z) && !defined(OGRE_HLSL) && !defined(VULKAN)
91
+ shadowMapPos.z = shadowMapPos.z * 0.5 + 0.5; // convert -1..1 to 0..1
92
+ #endif
93
+ vec2 uv = shadowMapPos.xy;
94
+
95
+ // depth must be clamped to support floating-point depth formats. This is to avoid comparing a
96
+ // value from the depth texture (which is never greater than 1.0) with a greater-than-one
97
+ // comparison value (which is possible with floating-point formats).
98
+ float depth = clamp(shadowMapPos.z, 0.0, 1.0);
99
+
100
+ c = 0.0;
101
+ float scale = 1.0;
102
+ float offset = (PCF_XSAMPLES / 2.0 - 0.5) * scale;
103
+ for (float y = -offset; y <= offset; y += scale)
104
+ for (float x = -offset; x <= offset; x += scale)
105
+ c += sampleDepth(shadowMap, uv + invTexSize * vec2(x, y), depth);
106
+
107
+ c /= PCF_XSAMPLES * PCF_XSAMPLES;
108
+ }
109
+ #endif
110
+
111
+ //-----------------------------------------------------------------------------
112
+ void SGX_ComputeShadowFactor_PSSM3(in float fDepth,
113
+ in vec4 vSplitPoints,
114
+ in vec4 lightPosition0,
115
+ in SAMPLER_TYPE shadowMap0,
116
+ in vec2 invShadowMapSize0,
117
+ #if PSSM_NUM_SPLITS > 2
118
+ in vec4 lightPosition1,
119
+ in SAMPLER_TYPE shadowMap1,
120
+ in vec2 invShadowMapSize1,
121
+ #endif
122
+ #if PSSM_NUM_SPLITS > 3
123
+ in vec4 lightPosition2,
124
+ in SAMPLER_TYPE shadowMap2,
125
+ in vec2 invShadowMapSize2,
126
+ #endif
127
+ in vec4 lightPosition3,
128
+ in SAMPLER_TYPE shadowMap3,
129
+ in vec2 invShadowMapSize3,
130
+ out float oShadowFactor
131
+ #ifdef DEBUG_PSSM
132
+ , out vec4 oDiffuse
133
+ #endif
134
+ )
135
+ {
136
+ #if !defined(OGRE_REVERSED_Z) && !defined(OGRE_HLSL) && !defined(VULKAN)
137
+ vSplitPoints = vSplitPoints * 0.5 + 0.5; // convert -1..1 to 0..1
138
+ #endif
139
+
140
+ #ifdef OGRE_REVERSED_Z
141
+ vSplitPoints = vec4_splat(1.0) - vSplitPoints;
142
+ fDepth = 1.0 - fDepth;
143
+ #endif
144
+
145
+ if (fDepth <= vSplitPoints.x)
146
+ {
147
+ SGX_ShadowPCF4(shadowMap0, lightPosition0, invShadowMapSize0, oShadowFactor);
148
+ #ifdef DEBUG_PSSM
149
+ oDiffuse.r += 1.0;
150
+ #endif
151
+ }
152
+ #if PSSM_NUM_SPLITS > 2
153
+ else if (fDepth <= vSplitPoints.y)
154
+ {
155
+ SGX_ShadowPCF4(shadowMap1, lightPosition1, invShadowMapSize1, oShadowFactor);
156
+ #ifdef DEBUG_PSSM
157
+ oDiffuse.g += 1.0;
158
+ #endif
159
+ }
160
+ #endif
161
+ #if PSSM_NUM_SPLITS > 3
162
+ else if (fDepth <= vSplitPoints.z)
163
+ {
164
+ SGX_ShadowPCF4(shadowMap2, lightPosition2, invShadowMapSize2, oShadowFactor);
165
+ #ifdef DEBUG_PSSM
166
+ oDiffuse.r += 1.0;
167
+ oDiffuse.g += 1.0;
168
+ #endif
169
+ }
170
+ #endif
171
+ else if (fDepth <= vSplitPoints.w)
172
+ {
173
+ SGX_ShadowPCF4(shadowMap3, lightPosition3, invShadowMapSize3, oShadowFactor);
174
+ #ifdef DEBUG_PSSM
175
+ oDiffuse.b += 1.0;
176
+ #endif
177
+ }
178
+ else
179
+ {
180
+ // behind far distance
181
+ oShadowFactor = 1.0;
182
+ }
183
+ }