Lasse Öörni
|
5acb70802c
Re-enable OpenGL depth test in the beginning of frame in case of third party overlay programs such MSI Afterburner having modified it. Closes #1089.
|
10 anni fa |
Ivan K
|
4b015f3c51
LOGERRORF -> URHO3D_LOGERRORF
|
10 anni fa |
Ivan K
|
c9a77c8d56
LOGDEBUGF -> URHO3D_LOGDEBUGF
|
10 anni fa |
Ivan K
|
ad2eb74d83
LOGERROR -> URHO3D_LOGERROR
|
10 anni fa |
Ivan K
|
3a7e7f058e
LOGWARNING -> URHO3D_LOGWARNING
|
10 anni fa |
Ivan K
|
d53fc4b94b
LOGINFO -> URHO3D_LOGINFO
|
10 anni fa |
Ivan K
|
0c3f67abfe
LOGDEBUG -> URHO3D_LOGDEBUG
|
10 anni fa |
Ivan K
|
db15f0358e
PROFILE -> URHO3D_PROFILE
|
10 anni fa |
Lasse Öörni
|
da81b99ca3
Do not return a resolution list containing 1x1 on Emscripten, rather return empty. Do not check fullscreen mode validity if the resolution list is empty.
|
10 anni fa |
Jukka Jylänki
|
fc0d427557
Add support for GPU hardware instancing on Emscripten. In WebGL 1 it is exposed by the ANGLE_instanced_arrays ( https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ ) extension, and in WebGL 2, it is enabled in core.
|
10 anni fa |
Yao Wei Tjong 姚伟忠
|
e1341f7261
Replace the usage of Emscripten define and include to follow its norm.
|
10 anni fa |
Lasse Öörni
|
b6ff82571a
Remove glEnable & glDisable calls related to GL texture types, as they're not needed with GLSL shaders, which Urho3D uses always. Ensure that SetTextureForUpdate() also correctly unbinds the old texture type if it changes in the unit. Closes #922.
|
10 anni fa |
Jukka Jylänki
|
78514da22e
Add support for detecting ETC1 and PVRTC extensions in Emscripten/WebGL.
|
10 anni fa |
Yao Wei Tjong 姚伟忠
|
fa77a456f8
Reformat Urho3D source files to get rid of the indents on empty lines.
|
10 anni fa |
Lasse Öörni
|
1c4e6f43ff
Added the AMD equivalent for NvOptimusEnablement.
|
10 anni fa |
Yao Wei Tjong 姚伟忠
|
b1d6031673
Show root cause error from SDL when SDL fails to create main window.
|
10 anni fa |
Lasse Öörni
|
4c9005785b
Do not use float luminance formats, as they are deprecated on GL3. Instead return R16F & R32F formats (red channel only) to match Direct3D behavior. Closes #722.
|
10 anni fa |
Yao Wei Tjong 姚伟忠
|
b2c2bb372b
Attempt to suppress some of the compiler warnings from iOS 64bit build.
|
10 anni fa |
Lasse Öörni
|
8ea3476479
Bind the backbuffer FBO before cleaning up frame buffers.
|
10 anni fa |
Lasse Öörni
|
dae17d375c
Clean up OpenGL frame buffers when window size changes.
|
10 anni fa |
Lasse Öörni
|
5c448d6e1d
Support DXT1,3,5 on Emscripten. Simplify GL / GLES code path differences in OGLTexture.cpp.
|
10 anni fa |
Lasse Öörni
|
2961166acb
Graphics code cleanup. Remove the GraphicsFeatures event, as now the features can not change during runtime. Move all OpenGL extensions checks to CheckFeatureSupport(). Fix an AMD GLSL compilation bug, which caused buggy 4-sample shadows.
|
10 anni fa |
Lasse Öörni
|
b92372264b
Ensure that the OpenGL extensions are initialized after context recreation, and a valid VAO exists on GL3, before giving the GPU objects the chance to restore themselves.
|
10 anni fa |
Lasse Öörni
|
7666853b3a
Revert "Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug." as the issue is fixed on the latest Intel driver. There was also a OpenGL 2 corrupted rendering bug related to clip planes on the earlier driver version, which was not fixable.
|
10 anni fa |
Lasse Öörni
|
d99fefa68b
Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug.
|
10 anni fa |
Lasse Öörni
|
64600d5526
Enable GLEW experimental mode only on a 3.2+ context so that OpenGL 2 extensions can be checked strictly.
|
10 anni fa |
Lasse Öörni
|
b8c7c59eca
Configure amount of allowed bones for hardware skinning based on the rendering API. Allow 128 bones on Direct3D 11 & OpenGL 3. Add -mb (maxbones) parameter to AssetImporter & OgreImporter. When using OpenGL 3, allow deferred rendering to use different MRT formats without forcing an RGBA substitute rendertarget.
|
10 anni fa |
Lasse Öörni
|
81e6647b60
Clean up OpenGL Graphics class code. Use core functions for instancing on OpenGL 3. Do not enable/disable texture targets on OpenGL 3. Removed the framebuffer aging mechanism; instead framebuffers are cleaned up on context loss (resolution change.) Disable OpenGL constant buffer use by default (from Uniforms.glsl) as they were found to be slower in practice.
|
10 anni fa |
Lasse Öörni
|
7716b4860c
Use a reinterpret-cast trick to eliminate code duplication from Graphics::SetVertexBuffers(). Removed D3DCOMPILER_STRIP_PRIVATE_DATA flag as it may be undefined when compiling using the DirectX SDK.
|
10 anni fa |
Lasse Öörni
|
f4dc0bf149
If GL3 context creation fails, retry with GL2.
|
10 anni fa |