Lasse Öörni
|
a1e2bc9bd3
Make shader cache location configurable, default "urho3d/shadercache" in app preferences, to avoid writing to write-protected installation directory by default. Instructions in porting notes to restore earlier behavior. ShaderCacheDir & PackageCacheDir parameters added to engine startup parameters. Fix GetResourceFileName() function to return the unmodified filename if it's absolute and exists. Remove unnecessary mutex lock from GetResourceFileName(). Remove some code duplication from Graphics class implementations. Closes #1610.
|
9 years ago |
Lasse Öörni
|
b22768227f
Possibility to enable alpha-to-coverage in either pass or material (all passes). Requires D3D11 or OpenGL and hardware multisampling enabled. Seems to look slightly different on D3D / OpenGL. Fixed depth bias not being copied in Material::Clone(). Closes #1578.
|
9 years ago |
Lasse Öörni
|
83acf5bc14
Optional per-texture specifiable max. anisotropy level. Closes #1563.
|
9 years ago |
Lasse Öörni
|
489f759e00
Fix slope-scale depth bias potentially not creating new rasterizer state on D3D11 due to poor hashing. Remove mistaken adjustment of slope-scale bias on OpenGL. Now behavior should be uniform between D3D9/D3D11/OpenGL. Closes #1547.
|
9 years ago |
Lasse Öörni
|
a2d86f1a59
Get screenshot as RGBA on OpenGL ES to fix Android black screenshot.
|
9 years ago |
Lasse Öörni
|
91f4489e07
Fix hardwareShadowSupport returning false on OpenGL, which would make it impossible to switch to 1-sample shadow mode. However, deliberately disable 1-sample mode from mobile NinjaSnowWar to achieve similar quality to desktops.
|
9 years ago |
Lasse Öörni
|
56ba0def78
Add Graphics::SetDither(). Closes #1489.
|
9 years ago |
Lasse Öörni
|
c647ae7dfa
Put zone texture to environment texture unit on OpenGL ES. Fix web build including texture unit mappings which are not included in the shaders.
|
9 years ago |
Lasse Öörni
|
28ed7c1706
Remove ambiguous WeakPtr initialization from Graphics class. Closes #1459.
|
9 years ago |
Lasse Öörni
|
fd5bac385a
Since the SDL window is not API-specific, move it into Graphics from GraphicsImpl to simplify code.
|
9 years ago |
Lasse Öörni
|
eb104906aa
Remove API-specific Graphics class headers and code duplication. Closes #1422.
|
9 years ago |
Lasse Öörni
|
bdce4b3dba
Move API-specific Graphics class member variables to GraphicsImpl. Rename WindowMoved & WindowResized to OnWindow.. to match convention used elsewhere (eg. OnNodeSet) Change windowIcon_ member to WeakPtr to ensure safety in later access. Minor class comment fixes.
|
9 years ago |
Lasse Öörni
|
6c77b75813
Cleanup ShaderParameter related code.
|
9 years ago |
Lasse Öörni
|
f8d636426c
Make ShaderVariation class header API-agnostic.
|
9 years ago |
Lasse Öörni
|
1ba87dae4c
Get rid of API-specific GPUObject class header & implementation.
|
9 years ago |
Lasse Öörni
|
489356a29f
Cleanup editor debug icon code to not do constant resizes of billboardsets to zero and back, and to use fixed screen size mode to eliminate need for manual sizing. BillboardSet::SetNumBillboards() is no-op if count remains same. Fix BillboardSet fixed size bug when changing between ortho & perspective camera. Do not care to resize scratch buffer smaller if it's below 1MB. Add scratch buffer debug messages also to OpenGL Graphics class for consistency. Closes #1434.
|
9 years ago |
Yusuf Umar
|
f9e65027e3
Implementing RibbonTrail
|
9 years ago |
Yao Wei Tjong 姚伟忠
|
a5b4512966
Reduce direct exposure to SDL headers as much as possible.
|
9 years ago |
Yao Wei Tjong 姚伟忠
|
3ab69da3af
Use __ANDROID__ compiler define consistently.
|
9 years ago |
Yao Wei Tjong 姚伟忠
|
64d975ba1a
Add initial build support for generic ARM platform.
|
9 years ago |
Lasse Öörni
|
cac0d0e5aa
Add note of potential bug on old GPU's and seamless cube map extension.
|
9 years ago |
Lasse Öörni
|
ec05d239f3
Check seamless cubemap extension before trying to enable it on GL2. Related to #1380.
|
9 years ago |
Lasse Öörni
|
0095fbb41e
Unix named pipe support. Fixed GCC warning in OGLGraphics.cpp. Closes #1346.
|
9 years ago |
Lasse Öörni
|
97bf7fa8a2
Fix crash when driver allows GL version 3.2 but doesn't support instancing.
|
9 years ago |
Yao Wei Tjong 姚伟忠
|
31d362f879
Add new engine parameter for enabling/disabling high DPI window mode.
|
9 years ago |
Lasse Öörni
|
d80e5f9a32
Simplify OpenGL code.
|
9 years ago |
svifylabs
|
e94d00517c
fix compile error and added runtime check
|
9 years ago |
svifylabs
|
c09b638524
Add Graphics draw call with baseVertexIndex (offset)
|
9 years ago |
Lasse Öörni
|
c003af1114
Merge branch 'master' into vertexdeclaration
|
9 years ago |
Lasse Öörni
|
3f861d67dd
Enable seamless cubemap if possible on desktop GL (from 1vanK). Clarify meaning of Light::SetShadowIntensity().
|
9 years ago |