mcc
|
9f06700ad9
Currently if you pass MaterialManager::createTextureFromFile an incorrect file path it returns the default texture, and if you pass it an empty string it special-case returns NULL. Other Polycode classes do not anticipate this inconsistency and can crash when this occurs.
|
преди 12 години |
Ivan Safrin
|
2365cebc9b
Fixed single line UITextInput crashing on mousewheel events, fixed normalized render targets not working properly
|
преди 12 години |
Nur Monson
|
7130978066
Add the filename to some file loading error messages
|
преди 12 години |
Ivan Safrin
|
394f41fca4
Finished the material editor in the IDE. Rewrote screen shader bindings. Fixed depth buffer FBOs and depth buffer binding. Screen shaders now require explicit 'color' and 'depth' rendertarget bindings to access the original scene/screen render. Added an optional precision parameter to String::NumberToString. Numberous resizing improvements to UI controls and IDE props. Added DefaultShaderNoTextureHDR shader to hdr pack. Added a default REMOVE_EVENT Event type. Added Vector2 shader prop. Removed deprecated saving/loading code from Scene. Numerous bugfixes in shader code.
|
преди 12 години |
Ivan Safrin
|
1caf52677f
Shader programs are now referenced by paths not names, will be loaded if not a current resource when loading shader, changed the default material files to reflect the new changes
|
преди 12 години |
Ivan Safrin
|
4e0c221180
Added cubemap editor to IDE material editor, added LightCube shader to the default pack, fixed cubemap bindings in GLSL, changed the way cubemaps are save in the material file, added cubemap selector in the material editor
|
преди 12 години |
Ivan Safrin
|
bd00899428
Fixed new material system not setting ambient color properly, made Materials broadcast resource reload event on shader reload
|
преди 12 години |
Ivan Safrin
|
a8e81d54e6
Shaders no longer require unifroms to be declared in the material file and loaded directly from GLSL, fixed a crash in resource manager destructor, added additive blending operation for Color
|
преди 12 години |
Ivan Safrin
|
039b341794
Added ability to create a shader programmatically from MaterialManager, made programs notify shader when they reload, made the YesNo and YesNoCancel popups have minimum width, added a shader icon to the asset browser
|
преди 12 години |
cib
|
decbf1e0ef
Changed the Image::fill interface
|
преди 12 години |
Ivan Safrin
|
aca1fa37a4
Fixed resource paths not setting correctly for textures, added texture resource reload, made images in IDE editors reload on change.
|
преди 12 години |
Ivan Safrin
|
403c82ffdb
New material editor, started on shader editor (doesnt save yet), rewrote some internal shader stuff to be more streamlined, fixed Label not redrawing correctly after setting size or font, fix for paths with spaces in executeExternalCommand and IDE on Linux and Mac, made 2D template use an entity2d file, fixed new file and new project dialog buttons firing while invisible
|
преди 12 години |
Ivan Safrin
|
bb3204a27a
Added clampDefault and mipmapsDefault settings to MaterialManager to set the texture clamping and mimap generation defaults
|
преди 12 години |
mcc
|
4a881447e4
Prevent a potential crash when parsing a materials xml containing mistakes
|
преди 13 години |
Ivan Safrin
|
6135171126
MAJOR MATERIAL SYSTEM CHANGES: Material properties now defined as shader parameters, shader parameters now created for all materials with default values, textures now must be referenced by full relative paths to resource directories, addArchive can now take folder as parameter. Object changes: string children now set as attributes instead of new nodes in XML. IDE: Basic Material file editor (will only edit/save materials for now)
|
преди 13 години |
Ivan Safrin
|
5e356889d3
Merge pull request #123 from mcclure/xmlfix
|
преди 13 години |
mcc
|
524720f71d
Merge 7/29 mcclure shader fixes branch with Ivan Polycode
|
преди 13 години |
mcc
|
759f0a54e5
TiXmlNode::ToElement() can return NULL, for example in the case of an XML c
|
преди 13 години |
Ivan Safrin
|
95ef3cc459
Premultiplied alpha support
|
преди 13 години |
mcc
|
f9e5bf72fb
Material manager 'reload programs' reloads programs (shaders) but not shaders (programs), meaning materials don't actually change after a reload. Fix that. Add a 'grab all resources of type' feature to ResourceManager to support this.
|
преди 14 години |
Ivan Safrin
|
096ec070c0
Only use FP16 framebuffers if specified in material file
|
преди 14 години |
Ivan Safrin
|
5639b9844c
Small fix to last commit
|
преди 14 години |
Ivan Safrin
|
c2b21a5e41
Made mipmaps not generate for Screen mesh textures
|
преди 14 години |
Ivan Safrin
|
1f89731a0a
HDR and shader fixes, made SceneLabel subclass SceneMesh
|
преди 14 години |
Ivan Safrin
|
04a22925fc
Tangent generation and normal map shader support
|
преди 14 години |
Ivan Safrin
|
971106bb55
Fixed texture destruction and render to texture
|
преди 14 години |
Cameron Hart
|
aa4e7b968e
Huge tidy up of headers. Moved includes to .cpp files where possible to improve compile times and reduce circular dependencies.
|
преди 14 години |
Cameron Hart
|
d2fde9fc99
Converted string to store as UTF-8 since the majority of the time this is how it's used. Now strings can be passed as const reference parameters which greatly reduces the amount of string copying being performed.
|
преди 14 години |
Ivan Safrin
|
19cd891d7c
Rewrote default shaders, fixed light sorting code, fixed UV generation for cylinder, torus primitives, material properties in material files.
|
преди 14 години |
Ivan Safrin
|
f4baf7df63
Added default shaders, fixed GLSL shader calls, made GLSL part of core, added positional sound support.
|
преди 14 години |