Commit Graph

540 Commits

Author SHA1 Message Date
Lasse Öörni
c923476847 Merge branch 'master' into multisample-textures
# Conflicts:
#	Docs/Reference.dox
2016-09-26 10:52:54 +03:00
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. 2016-09-23 18:36:40 +03:00
Lasse Öörni
f75fbfa688 Add multisample & autoresolve definitions to RenderTargetInfo. 2016-09-19 21:27:38 +03:00
carnalis
e422aad26a render path syntax correction to Doxygen docs 2016-09-18 16:34:09 -04:00
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. 2016-09-12 23:43:45 +03:00
Lasse Öörni
83acf5bc14 Optional per-texture specifiable max. anisotropy level. Closes #1563. 2016-09-11 16:28:45 +03:00
Lasse Öörni
6895a512af Pass-level mechanism for eliminating unnecessary shader compilation defines. Closes #1567. Use this mechanism to eliminate PACKEDNORMAL define from depth & shadow pass in normalmapped techniques. 2016-09-09 00:29:19 +03:00
Lasse Öörni
2fe4cb0131 Add max extrusion parameter for directional lights. Default to 1000. This prevents large far clip causing poor shadow map depth resolution and too strong effect of depth bias parameters, but can be increased if very tall shadows are needed. 2016-09-06 20:41:55 +03:00
Lasse Öörni
623639cdfe Add note of example use of render order. 2016-09-06 13:32:52 +03:00
Lasse Öörni
695f75099e Remove specific AlphaMask & NormalPacked techniques, in favor of adding the necessary shader defines in the material instead. 2016-09-06 11:47:42 +03:00
Lasse Öörni
48f779e234 Add possibility for materials to define vertex & pixel shader compilation defines, like techniques & passes. Related to #1566. As a consequence, removed the "alphamask" hint from techniques (render order can be used instead) and automatic determination if material should occlude. Fixed bugs in Material JSON save. Allow JSONValue::Size() to also work in object mode. Added porting notes as necessary. 2016-09-06 10:01:32 +03:00
Lasse Öörni
9df9a5c77c Add new AssetImporter flag to Doxygen docs. 2016-08-24 17:32:54 +03:00
Lasse Öörni
d2abcc89a6 Add brief documentation section on physical light values. 2016-08-16 20:31:06 +03:00
Lasse Öörni
9cb40e239f Minor additions / changes to the UI documentation page. 2016-08-13 19:23:47 +03:00
Rokas Kupstys
d48c4120a1 E_INPUTBEGIN, E_INPUTEND, E_SDLRAWINPUT 2016-08-06 15:47:40 +03:00
Yao Wei Tjong 姚伟忠
9fee916c55 For documentation - use https protocol when it is available. 2016-07-24 13:39:14 +08:00
Lasse Öörni
02e1d6dd2c Add performance note of package files on Android. 2016-07-07 15:40:21 +03:00
Lasse Öörni
4279990ea8 Minor fixes. Add script bindings and documentation for the new renderpath command. 2016-06-21 18:54:57 +03:00
Lasse Öörni
6d046d57c8 More minor code, comment and tab-to-spaces changes. Use the more specific TrailPoint struct name instead of Point, and export it in case a derived class wants to manipulate them. Add RibbonTrail to documentation's drawable class list. 2016-06-15 21:16:28 +03:00
Lasse Öörni
67e80aa61e Add brief documentation section on defining extra per-instance data. 2016-06-14 21:36:31 +03:00
Lasse Öörni
31f608408d Minor documentation update on scene model. 2016-06-01 13:27:23 +03:00
Yao Wei Tjong 姚伟忠
cfd6233297 Minor doc update on Linux and RPI building prerequisite section. 2016-06-01 17:37:45 +08:00
cosmy
b057434bfa Make escape key name consistent between keycode and scancode. 2016-05-27 13:27:53 +02:00
Lasse Öörni
caf663eac3 Possibility for BillboardSet / ParticleEffect billboards to be fixed screen size. In this case the billboard size is measured in pixels. 2016-05-25 15:39:26 +03:00
Lasse Öörni
9e22d226c5 Add explanation of sceneless sound nodes to the documentation. Closes #1385. 2016-05-24 10:57:15 +03:00
Lasse Öörni
591171202a Add short documentation section on VSM shadows. 2016-05-21 19:31:48 +03:00
Lasse Öörni
2ca6d16b28 Mention EventProfiler in the documentation. Simplify code in DebugHud to activate/deactivate event profiler. 2016-05-19 16:32:36 +03:00
Lasse Öörni
5d71f8012a Update documentation. Skip material / texture save in AssetImporter "anim" mode. 2016-05-18 16:24:54 +03:00
Lasse Öörni
7da8374a3b Option to override culling mode in pass. Closes #1363. 2016-05-17 18:58:32 +03:00
Lasse Öörni
113b771a47 Add section on render order caveats to documentation. Closes #1358. 2016-05-14 19:59:51 +03:00
Yao Wei Tjong 姚伟忠
4f72a673d9 Fix the compression ratio calculation. Suppress compilation warnings. 2016-05-14 22:57:14 +08:00
Yao Wei Tjong 姚伟忠
c28634c206 Minor enhancement on the PackageTool to have output option. 2016-05-14 15:07:14 +08:00
Lasse Öörni
a955725bd0 Add the interpolation mode IM_NONE to ValueAnimation. Add animating UI element to LightAnimation example. Add ResourceRef constructor that takes type & name as strings for easier script bindings. 2016-05-09 22:38:06 +03:00
Lasse Öörni
44ba1f04b8 Enhance documentation related to normal offset. Add missing Lua property for mobileNormalOffsetMul. Closes #1347. 2016-05-07 20:20:45 +03:00
Lasse Öörni
7160a0ab7c Normal offset shadow support for HLSL. Fix deferred specular calculation on HLSL. 2016-05-07 20:20:42 +03:00
Yao Wei Tjong 姚伟忠
31d362f879 Add new engine parameter for enabling/disabling high DPI window mode.
Temporary fix for issue #1252. The high DPI mode is disabled by default.
2016-04-24 17:36:32 +08:00
Lasse Öörni
ed8740428c Remove cCameraRot uniform. Instead derive from cViewInv as necessary. Closes #1163. 2016-04-19 23:18:07 +03:00
Lasse Öörni
57389d42c2 Minor documentation edit. 2016-04-19 12:41:44 +03:00
Lasse Öörni
2771411577 Fix OBJ export in Drawable class. Fix wrong indexing in writing vertex colors in AssetImporter. Minor addition to documentation. 2016-04-13 15:48:43 +03:00
Lasse Öörni
31f8ff69ec New model format that supports arbitrary vertex declarations. 2016-04-12 23:57:19 +03:00
Lasse Öörni
7b738c54ac Merge branch 'master' into vertexdeclaration 2016-04-12 22:20:09 +03:00
Yao Wei Tjong 姚伟忠
422406c3e7 Add C++11 variadic template version of the SendEvent() method. 2016-04-11 16:06:42 +08:00
Lasse Öörni
4b7b520862 Add a documentation page on vertex buffers. 2016-04-08 00:12:41 +03:00
Lasse Öörni
0987d15a5f Update documentation for 2D array textures. Closes #1236. 2016-04-04 20:33:33 +03:00
Lasse Öörni
b7a7bdb705 Tabs to spaces, minor comment cleanup. Document new AssetImporter command line option. 2016-03-22 12:46:40 +02:00
Yao Wei Tjong 姚伟忠
ccf6648eb3 Utilize new SDLActivity's get arguments feature. 2016-03-16 01:42:01 +08:00
Lasse Öörni
1fba0c80de Document additive animation blending. 2016-03-10 16:09:51 +02:00
Lasse Öörni
6b5b6ab4b3 Document node & UI element tagging. Closes #1176. Fixes in scene model documentation. Tabs to spaces in Scene AngelScript API. 2016-03-05 13:13:50 +02:00
Enhex
38b2020875 Updated PackageTool's options description. 2016-02-13 18:09:53 +02:00
urho3d-travis-ci
c4f6f315ff Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 13:55:03 +00:00
Lasse Öörni
b218aececc Sync AssetImporter documentation with the program's actual command line options. Simplify D3D9 uninitialization code with SAFE_RELEASE. Minor code convention edit. 2015-12-24 13:16:17 +02:00
Lasse Öörni
6a3bbb8aab Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file. 2015-12-18 14:22:24 +02:00
Lasse Öörni
95f3cecc30 Add the NOUV mechanism for Depth & Shadow HLSL shaders. Document the significance of providing all vertex attributes expected by shader on D3D11. Tabs to spaces in Reference.dox. 2015-12-15 11:01:10 +02:00
Nick Royer
10bad1e36a Added JSON animation triggers as well as a few quick file filter
settings for the editor and documentation changes.
2015-12-10 14:31:05 -06:00
Lasse Öörni
a4e22db6e5 Auto-resize the UI root when scale is changed. Fix Console to support scaled UI. Add UI scale Lua bindings. Tweak UI scale AngelScript bindings. Fix UI render scissor region to work properly with scaled UI. Added brief documentation on UI scaling. 2015-12-01 16:08:15 +02:00
Lasse Öörni
29e62526eb Added event for sound playback finished. Deprecate SoundSource::SetAutoRemove() and change samples + NinjaSnowWar to not use it. Fix network replication of SoundSource to work with repeated playback on the same source. 2015-11-25 22:50:19 +02:00
Yao Wei Tjong 姚伟忠
69ea5e6863 Minor documentation update to replace old class references. 2015-11-22 09:48:43 +08:00
Yao Wei Tjong 姚伟忠
22bd3de807 Refactor resource prefix path parameter to accept a list of paths.
Close #1000.
2015-11-03 17:46:56 +08:00
Lasse Öörni
11139ac726 Clarify documentation on InvSize and Offsets uniforms set during quad rendering. 2015-11-02 16:05:23 +02:00
Lasse Öörni
60d946eb64 Option to enable threaded occlusion rendering. May actually result in worse performance, so disabled by default. Report number of rendered occluders accurately (taking into account occluders rejected by being occluded themselves, or by running out of triangles.) Closes #970. 2015-10-25 20:53:25 +02:00
Lasse Öörni
58a6c38088 Minor documentation updates to refer to the renamed macros. 2015-10-23 22:27:55 +03:00
Lasse Öörni
b616aa6272 Merge remote-tracking branch '1vanK/master'
Conflicts:
	Source/Urho3D/Engine/DebugHud.cpp
	Source/Urho3D/Engine/Engine.cpp
2015-10-23 22:27:39 +03:00
Ivan K
31f3c9ab65 DEFINE_APPLICATION_MAIN -> URHO3D_DEFINE_APPLICATION_MAIN 2015-10-21 23:08:28 +04:00
Ivan K
4bcbae61fe HANDLER -> URHO3D_HANDLER 2015-10-21 21:49:02 +04:00
Lasse Öörni
d264f35c9d Add note of documentation to the contribution chceklist. 2015-10-21 12:18:36 +03:00
Ivan K
f02cd63437 OBJECT -> URHO3D_OBJECT 2015-10-21 11:12:45 +04:00
Lasse Öörni
6eb9eac4cb Update documentation on using Viewport::SetCullCamera(). Remove outdated documentation related to instancing. 2015-10-16 13:21:34 +03:00
Lasse Öörni
04dba029ed Clarifications for third party library use in the contribution checklist. 2015-10-11 20:14:01 +03:00
Lasse Öörni
e6e16b90ed Minor code formatting. Document that we have returned to the old behavior of not notifying dirty node transform if it was already dirty before, and users of the TransformChanged() function should read the node's world transform to ensure continued notifications. 2015-10-10 14:42:29 +03:00
Yao Wei Tjong 姚伟忠
fde2ad45ac Fix Android and Raspberry-Pi build by always disabling SSE support.
[ci only: RPI, Android]
2015-10-10 17:49:29 +08:00
Mike3D
730388c0ce Fixed SplinePath AngelScript bindings and added documentation for it. 2015-10-08 14:00:44 +02:00
Lasse Öörni
2fcbaae59d Fix duplicate section name in shader fileformat documentation. 2015-10-01 11:11:45 +03:00
Lasse Öörni
e55915502e Added MM_FREE mouse mode, which allows the cursor to move around and go out of the window also when hidden, and give accurate GetMousePosition() readings when inside the window. Closes #904. 2015-09-22 13:36:07 +03:00
Lasse Öörni
6f01d1cac9 Added globalVars VariantMap to AngelScript API which can be used to share data between script modules or persist data through script reloads. 2015-09-16 17:58:49 +03:00
Lasse Öörni
f32ef3149b Added explanation on color correction & 3D textures. Closes #880. 2015-09-09 12:12:31 +03:00
Thorbjørn Lindeijer
6e2eb72a25 Removed outdated warning in TMX documentation
No longer relevant since change 094d146c3c.
2015-09-07 10:48:03 +02:00
Yao Wei Tjong 姚伟忠
d8fcc094b9 Minor documentation page update. [ci only: master] 2015-09-03 17:56:26 +08:00
Lasse Öörni
6b33ba60f9 Allow multiple resource routers in ResourceCache. Script subsystem installs its own resource router to allow loading compiled scripts (.asc) when the originals (.as) don't exist. Closes #864. 2015-08-31 12:41:12 +03:00
Yao Wei Tjong 姚伟忠
f9e27e33f2 Ensure Lua function references are released when refcounter reaches 0.
Add support for constructing Lua function from C function.
2015-08-28 16:27:30 +08:00
Yao Wei Tjong 姚伟忠
c2471a240a Reorganize includes for Samples and Extras.
Since the URHO3D_PCH build option is made available to support non-PCH build, our build system does not rely on precompiled header to include the Urho3D.h export header anymore. The export header is auto-included by one of Urho3D headers when it is required using the right format with the help of URHO3D_IS_BUILDING compiler define. As such, there is no need to explicitly include Urho3D.h in external project too. Sorry for the flip-flop.
2015-08-27 18:07:20 +08:00
Yao Wei Tjong 姚伟忠
61647bb887 Optimize Lua Variant class bindings.
Take advantage of Lua being type-less by binding generic methods that can handle all the supported data type conversion.
At the same time reduce the amount of the overloads generated by tolua++ which could be potentially just dead code.
2015-08-24 13:26:25 +08:00
Yao Wei Tjong 姚伟忠
102e8862bd Avoid repetition by accessing Variant::value directly via friend func. 2015-08-19 00:13:51 +08:00
Yao Wei Tjong 姚伟忠
b202aa6ee7 Minor typo correction on Lua scripting documentation page. 2015-08-18 17:12:37 +08:00
Yao Wei Tjong 姚伟忠
4c7f8664b6 Further improve Lua binding for Variant and VariantMap classes.
- VariantMap can be indexed by a StringHash object directly.
- Bind a generic Get() method for Variant class to automatically "unbox" the stored object and assign it to a type less Lua object.
- Prevent Lua VM crashes when invalid type name is being passed when calling GetVoidPtr() and GetPtr().
2015-08-18 17:04:55 +08:00
Yao Wei Tjong 姚伟忠
f65b938e1b Update documentation page for LuaScript.
Indexing VariantMap on Lua is now similar to C++ and AngelScript.
2015-08-13 20:39:47 +08:00
Yao Wei Tjong 姚伟忠
93f55dc5ad Minor documentation update on Database page.
[ci only: master]
2015-08-10 15:54:33 +08:00
Yao Wei Tjong 姚伟忠
7a7f250996 Add new documentation page for database subsystem. 2015-08-10 01:51:26 +08:00
Lasse Öörni
cb0cd03930 Add note of VS output / PS input semantics requiring the same order on D3D11. 2015-08-08 22:53:59 +03:00
Lasse Öörni
b53b584123 8-bit render order support in materials. This adjusts the drawing order within a scene pass, and takes precedence over both state & distance sorting. 2015-08-06 16:42:52 +03:00
Lasse Öörni
e594b9e6dd Edit Localization docs. Minor comment edit. 2015-07-21 14:33:23 +03:00
Lasse Öörni
87c8a0874a Merge remote-tracking branch '1vanK/improvements' 2015-07-21 13:46:06 +03:00
Ivan K
9c78d9bcb9 Localization: documentation 2015-07-20 07:13:37 +04:00
Ivan K
d540f79eec Localization: fixes, adding comments, reworking samples, partial russification of editor 2015-07-19 16:07:24 +04:00
Lasse Öörni
f5b2a17458 Add note of acceptable 3rd party licenses in the contribution checklist. 2015-07-16 22:55:26 +03:00
Lasse Öörni
6f8ed55c0a Fix the Depth shader on D3D11. Simplify View code to determine whether a substitute RT for the backbuffer is needed. Fix having to render the hardware depth stencil twice in the ForwardDepth renderpath. 2015-07-14 19:32:58 +03:00
Yao Wei Tjong 姚伟忠
f0d107d3db Add new build option to support non-PCH build.
In order to achieve this, the Precompiled.h is now included back in all the Urho3D implementation source file. So, when the Precompiled.h is not being force-included in the PCH build, then the compiler is still able to find all the required symbol declarations. By doing so, it should also fix the indexer in some IDEs to index all the Urho3D declared symbols correctly whether it is a PCH build or not.
2015-07-07 23:43:56 +08:00
Lasse Öörni
796dfa52e3 Updated warning in documentation for creating components to out-of-scene nodes. 2015-07-02 20:24:39 +03:00
Lasse Öörni
94d53fd687 Remove obsolete remark from documentation; to be verified with e.g. physics components. 2015-07-01 23:47:30 +03:00
David Feltell
414e92dad2 Tidied/updated Lua raw script loader CMake definition and documentation.
* Tidied CMake definition and defaulted to disabled for
multi-configuration build types.
* Added CMake variable to table in "Building Urho3D" docs page.
* Added a section on "Debugging script files" to the "Lua scripting"
docs page.
2015-06-15 23:59:38 +01:00
Lasse Öörni
d090b0be56 Added blendmode to renderpath commands (only used by QUAD commands.) 2015-05-28 17:00:00 +03:00