]> git.tdb.fi Git - libs/gl.git/log
libs/gl.git
8 years agoParse true and false as literals rather than identifiers
Mikko Rasa [Mon, 14 Nov 2016 09:52:14 +0000 (11:52 +0200)]
Parse true and false as literals rather than identifiers

8 years agoFix formatting issues with else ifs
Mikko Rasa [Sun, 13 Nov 2016 22:35:55 +0000 (00:35 +0200)]
Fix formatting issues with else ifs

8 years agoOverhaul assignment tracking to work properly with conditionals
Mikko Rasa [Sun, 13 Nov 2016 21:39:45 +0000 (23:39 +0200)]
Overhaul assignment tracking to work properly with conditionals

8 years agoGenerate a passthrough for gl_Position in geometry shader
Mikko Rasa [Sat, 12 Nov 2016 18:09:16 +0000 (20:09 +0200)]
Generate a passthrough for gl_Position in geometry shader

8 years agoAdd a module for builtin interface variables
Mikko Rasa [Sat, 12 Nov 2016 18:08:24 +0000 (20:08 +0200)]
Add a module for builtin interface variables

Required to make unused assignment removal work for gl_Position.

8 years agoBetter handling of array flag for generated interfaces
Mikko Rasa [Sat, 12 Nov 2016 16:41:32 +0000 (18:41 +0200)]
Better handling of array flag for generated interfaces

8 years agoMove unused aggregate detection to UnusedVariableDetector
Mikko Rasa [Sat, 12 Nov 2016 16:40:29 +0000 (18:40 +0200)]
Move unused aggregate detection to UnusedVariableDetector

It isn't really NodeRemover's job.

8 years agoFix unused variable decetion for self-referenging assignments
Mikko Rasa [Sat, 12 Nov 2016 16:09:32 +0000 (18:09 +0200)]
Fix unused variable decetion for self-referenging assignments

Extend it to initialization expressions as well.

8 years agoIntegrate ProgramCompiler with Program and Resources
Mikko Rasa [Sat, 12 Nov 2016 00:25:49 +0000 (02:25 +0200)]
Integrate ProgramCompiler with Program and Resources

8 years agoReturn back to first stage after some optimization happens
Mikko Rasa [Sat, 12 Nov 2016 00:04:14 +0000 (02:04 +0200)]
Return back to first stage after some optimization happens

Unused variable removal can propagate towards earlier stages so those
have to be checked again.

8 years agoProcess existing inputs in passthrough
Mikko Rasa [Sat, 12 Nov 2016 00:00:09 +0000 (02:00 +0200)]
Process existing inputs in passthrough

Vertex shader inputs are not linked to any outputs so they weren't being
recognized for passthrough.  Also, some inputs might have already been
declared either explicitly or implicitly so those declarations should be
preferred over creating new ones.

8 years agoRecognize superceded assignments even for out variables
Mikko Rasa [Fri, 11 Nov 2016 23:19:00 +0000 (01:19 +0200)]
Recognize superceded assignments even for out variables

8 years agoAssorted refactoring and fixes
Mikko Rasa [Fri, 11 Nov 2016 17:02:06 +0000 (19:02 +0200)]
Assorted refactoring and fixes

8 years agoRefactor module and stage management
Mikko Rasa [Fri, 11 Nov 2016 16:39:57 +0000 (18:39 +0200)]
Refactor module and stage management

Originally I envisioned that ProgramParser would handle imports, but it's
non-trivial to make re-entrant.  The parser will now only hold one module
at a time and ProgramCompiler will handle combining them.

8 years agoRename ProgramSyntax::Context to Stage
Mikko Rasa [Fri, 11 Nov 2016 13:59:38 +0000 (15:59 +0200)]
Rename ProgramSyntax::Context to Stage

8 years agoExtend unused variable analysis to assignments and across interfaces
Mikko Rasa [Fri, 11 Nov 2016 11:37:18 +0000 (13:37 +0200)]
Extend unused variable analysis to assignments and across interfaces

Assignments are removed if there are no further references to the
assigned variable, except if it's a linked out variable.

8 years agoStreamline interface declarations
Mikko Rasa [Fri, 11 Nov 2016 09:05:15 +0000 (11:05 +0200)]
Streamline interface declarations

Out variables can now be declared inside functions and will be exported
to global scope.  In variables don't need to be declared at all; they are
pulled in from the previous stage.  There's a new passthrough statement
to copy all inputs to outputs.

8 years agoRemove unused variable and struct declarations from the syntax tree
Mikko Rasa [Wed, 9 Nov 2016 13:59:17 +0000 (15:59 +0200)]
Remove unused variable and struct declarations from the syntax tree

8 years agoInject the global context to the syntax tree
Mikko Rasa [Wed, 9 Nov 2016 13:35:25 +0000 (15:35 +0200)]
Inject the global context to the syntax tree

... rather than concatenating its text with the other contexts.

8 years agoImplement an actual expression parser
Mikko Rasa [Tue, 8 Nov 2016 20:36:07 +0000 (22:36 +0200)]
Implement an actual expression parser

Doing pretty much anything interesting with the syntax tree requires
having access to expressions.

8 years agoBegin implementing a new shader program generator system
Mikko Rasa [Mon, 7 Nov 2016 21:10:51 +0000 (23:10 +0200)]
Begin implementing a new shader program generator system

ProgramBuilder is good enough when working within its standard features,
but it's difficult to expand.  Custom variables are overly sensitive to
declration order.  Adding loops or conditionals (other than the operator
flavor) requires using an additional shader.  It's not possible to modify
a variable's expression without replicating it in its entirety.

All of the internal processing with coordinate spaces, interfaces and
indices can also be difficult to understand.  Not to mention the reverse
processing order which starts from the goal variables and works backwards
to figure out how they can be computed.

The new ProgramCompiler system, as its name implies, works more like a
compiler.  It's designed to take GLSL as input, apply transformations to
it and produce different GLSL as output.  Storing the progrem as an
abstract syntax tree allows much more comprehensive processing than the
old system which barely understood what an identifier is.

At the moment it doesn't do much yet.  The only transformation is to
split a single source file into vertex, geometry and fragment parts and
add a common section at the beginning of each of them.  More will be
added soon.

8 years agoRestructure the extension detection code
Mikko Rasa [Sun, 6 Nov 2016 10:46:44 +0000 (12:46 +0200)]
Restructure the extension detection code

Extension disabling is now more forceful and will prevent the use of the
relevant functionality even if it was promoted to core.

8 years agoAdd a less-than operator to Version
Mikko Rasa [Sun, 6 Nov 2016 09:34:00 +0000 (11:34 +0200)]
Add a less-than operator to Version

8 years agoDetect deprecation versions for extensions
Mikko Rasa [Sat, 5 Nov 2016 23:37:55 +0000 (01:37 +0200)]
Detect deprecation versions for extensions

If the core profile is in use, deprecated extensions will be made
unavailable unless the driver explicitly advertises them.  In particular,
MSP_legacy_features is made unavailable so code that tries to access
legacy features with a core profile context will throw an exception.
Additionally no enable/disable calls will be generated for textures, as
they are only used for legacy texture units.

8 years agoAdd a function to determine the active GL profile
Mikko Rasa [Sat, 5 Nov 2016 23:37:11 +0000 (01:37 +0200)]
Add a function to determine the active GL profile

8 years agoBe smarter when detecting the core version of extensions
Mikko Rasa [Sat, 5 Nov 2016 23:28:58 +0000 (01:28 +0200)]
Be smarter when detecting the core version of extensions

8 years agoUse an orthographic camera for rendering the shadow map
Mikko Rasa [Sat, 5 Nov 2016 22:20:40 +0000 (00:20 +0200)]
Use an orthographic camera for rendering the shadow map

8 years agoProperly compute frustum culling for orthographic cameras
Mikko Rasa [Sat, 5 Nov 2016 22:10:59 +0000 (00:10 +0200)]
Properly compute frustum culling for orthographic cameras

It's still incorrect for skewed frustums but I'll fix that later.

8 years agoAlso convert RenderBuffer formats to sized variants if possible
Mikko Rasa [Sat, 5 Nov 2016 15:12:20 +0000 (17:12 +0200)]
Also convert RenderBuffer formats to sized variants if possible

8 years agoPrefer RG pixelformats over LUMINANCE
Mikko Rasa [Thu, 3 Nov 2016 11:12:06 +0000 (13:12 +0200)]
Prefer RG pixelformats over LUMINANCE

LUMINANCE formats were deprecated in OpenGL 3.0.  ARB_texture_swizzle
was not promoted to core until 3.3, so it's possible this won't work on
some transition period hardware.

SLUMINANCE formats are marked as deprecated in mspgl since it's not
possible to properly emulate them through swizzling.

8 years agoExpand the PixelFormat conversion API
Mikko Rasa [Thu, 3 Nov 2016 10:50:35 +0000 (12:50 +0200)]
Expand the PixelFormat conversion API

Get_sized_pixelformat now takes an explicit size parameter.  The decision
between 16-bit and 32-bit depth component formats has been moved to
Texture::set_internal_format.

Get_unsized_pixelformat was added as an intermediate step for
get_base_pixelformat.  It preserves sRGB information.

8 years agoFix Texture2D::get_data_size to use get_pixel_size
Mikko Rasa [Thu, 3 Nov 2016 08:29:08 +0000 (10:29 +0200)]
Fix Texture2D::get_data_size to use get_pixel_size

8 years agoHave get_component_size return zero for unsized formats
Mikko Rasa [Thu, 3 Nov 2016 08:27:50 +0000 (10:27 +0200)]
Have get_component_size return zero for unsized formats

Get_pixel_size still assumes a component size of at least one byte.

8 years agoMove internal format management to the Texture base class
Mikko Rasa [Thu, 3 Nov 2016 08:08:29 +0000 (10:08 +0200)]
Move internal format management to the Texture base class

8 years agoUse indexed string query to get extensions on OpenGL 3.0 and above
Mikko Rasa [Wed, 2 Nov 2016 22:23:08 +0000 (00:23 +0200)]
Use indexed string query to get extensions on OpenGL 3.0 and above

8 years agoAdd the ARB_texture_rg extension
Mikko Rasa [Wed, 2 Nov 2016 20:57:10 +0000 (22:57 +0200)]
Add the ARB_texture_rg extension

8 years agoAdd properties to export materials as texture array layers
Mikko Rasa [Sat, 29 Oct 2016 17:02:10 +0000 (20:02 +0300)]
Add properties to export materials as texture array layers

8 years agoUse ARB_direct_state_access to avoid some bind calls
Mikko Rasa [Fri, 28 Oct 2016 17:03:54 +0000 (20:03 +0300)]
Use ARB_direct_state_access to avoid some bind calls

8 years agoRefactor TextureCube face information functions with lookup tables
Mikko Rasa [Fri, 28 Oct 2016 16:34:10 +0000 (19:34 +0300)]
Refactor TextureCube face information functions with lookup tables

8 years agoRefactor Framebuffer::update_attachment for less indentation
Mikko Rasa [Fri, 28 Oct 2016 15:54:39 +0000 (18:54 +0300)]
Refactor Framebuffer::update_attachment for less indentation

8 years agoUse the correct form of glTexParameter to set maximum anisotropy
Mikko Rasa [Fri, 28 Oct 2016 12:31:47 +0000 (15:31 +0300)]
Use the correct form of glTexParameter to set maximum anisotropy

8 years agoRearrange texture bind calls to keep them closer to where they're needed
Mikko Rasa [Fri, 28 Oct 2016 12:21:03 +0000 (15:21 +0300)]
Rearrange texture bind calls to keep them closer to where they're needed

8 years agoPrefer explicit mipmap generation with glGenerateMipmap
Mikko Rasa [Fri, 28 Oct 2016 11:55:23 +0000 (14:55 +0300)]
Prefer explicit mipmap generation with glGenerateMipmap

Implicit generation with the texture parameter was deprecated in
OpenGL 3.0 and removed in OpenGL 3.2.

8 years agoUse ARB_texture_storage for defining texture storage
Mikko Rasa [Thu, 27 Oct 2016 22:52:13 +0000 (01:52 +0300)]
Use ARB_texture_storage for defining texture storage

8 years agoAdd some utility functions for textures
Mikko Rasa [Thu, 27 Oct 2016 22:49:59 +0000 (01:49 +0300)]
Add some utility functions for textures

8 years agoImplement sub_image for TextureCube also
Mikko Rasa [Thu, 27 Oct 2016 22:38:34 +0000 (01:38 +0300)]
Implement sub_image for TextureCube also

I thought it was already implemented but in turned out there was only a
declaration.

8 years agoPrefer sized internal formats when possible
Mikko Rasa [Thu, 27 Oct 2016 22:13:02 +0000 (01:13 +0300)]
Prefer sized internal formats when possible

8 years agoPull in sized depth component formats from ARB_depth_texture
Mikko Rasa [Thu, 27 Oct 2016 22:02:40 +0000 (01:02 +0300)]
Pull in sized depth component formats from ARB_depth_texture

8 years agoImplement 2D array textures
Mikko Rasa [Thu, 27 Oct 2016 08:13:39 +0000 (11:13 +0300)]
Implement 2D array textures

8 years agoCosmetic tweaks
Mikko Rasa [Thu, 27 Oct 2016 08:07:57 +0000 (11:07 +0300)]
Cosmetic tweaks

8 years agoRemove the obsolete storage statement with border
Mikko Rasa [Thu, 27 Oct 2016 08:01:19 +0000 (11:01 +0300)]
Remove the obsolete storage statement with border

8 years agoAdd a datafile statement to use an external image for a texture
Mikko Rasa [Thu, 27 Oct 2016 07:59:34 +0000 (10:59 +0300)]
Add a datafile statement to use an external image for a texture

It can be useful for non-2D textures which can't be loaded directly from
an image file by the resource collection.

8 years agoImplement sub_image for Texture1D
Mikko Rasa [Thu, 27 Oct 2016 07:58:35 +0000 (10:58 +0300)]
Implement sub_image for Texture1D

8 years agoImplement loading functionality for texture classes that were missing it
Mikko Rasa [Thu, 27 Oct 2016 07:48:32 +0000 (10:48 +0300)]
Implement loading functionality for texture classes that were missing it

8 years agoMove srgb handling to storage_pixelformat_from_graphics
Mikko Rasa [Thu, 27 Oct 2016 07:06:16 +0000 (10:06 +0300)]
Move srgb handling to storage_pixelformat_from_graphics

8 years agoUse the core version of primitive restart if possible
Mikko Rasa [Wed, 26 Oct 2016 19:13:38 +0000 (22:13 +0300)]
Use the core version of primitive restart if possible

8 years agoPick the correct source for an extension function if there's multiple
Mikko Rasa [Wed, 26 Oct 2016 19:02:23 +0000 (22:02 +0300)]
Pick the correct source for an extension function if there's multiple

8 years agoUse correct form of GET_PROC_ADDRESS for unpromoted functions
Mikko Rasa [Wed, 26 Oct 2016 18:48:49 +0000 (21:48 +0300)]
Use correct form of GET_PROC_ADDRESS for unpromoted functions

None compares as less than any list.

8 years agoUse ARB_geometry_shader4 rather than the EXT version
Mikko Rasa [Wed, 26 Oct 2016 18:42:38 +0000 (21:42 +0300)]
Use ARB_geometry_shader4 rather than the EXT version

The ARB version is what actually got promoted.

8 years agoBe smarter about detecting backport extensions
Mikko Rasa [Wed, 26 Oct 2016 18:33:21 +0000 (21:33 +0300)]
Be smarter about detecting backport extensions

Sometimes a more recent and completely unrelated extension reuses some
tokens with their core names, causing them to seem like backport
extensions to the script.

8 years agoGive the LIGHTING and CLIPPING flags a LEGACY prefix
Mikko Rasa [Wed, 26 Oct 2016 17:30:15 +0000 (20:30 +0300)]
Give the LIGHTING and CLIPPING flags a LEGACY prefix

8 years agoTrack whether implicit shader data needs to be re-applied
Mikko Rasa [Wed, 26 Oct 2016 17:29:54 +0000 (20:29 +0300)]
Track whether implicit shader data needs to be re-applied

8 years agoAlways print shader and program info logs in debug mode
Mikko Rasa [Wed, 26 Oct 2016 15:16:34 +0000 (18:16 +0300)]
Always print shader and program info logs in debug mode

They may contain useful warnings even if the code was accepted.

8 years agoAdd uniform integer vectors of 2, 3 and 4 elements
Mikko Rasa [Wed, 26 Oct 2016 15:11:06 +0000 (18:11 +0300)]
Add uniform integer vectors of 2, 3 and 4 elements

8 years agoFix Camera::unproject
Mikko Rasa [Mon, 24 Oct 2016 20:55:58 +0000 (23:55 +0300)]
Fix Camera::unproject

It was lacking un-perspective division.  There's also a Vector3 overload
now.

8 years agoCheck glGetString result for being null
Mikko Rasa [Sun, 23 Oct 2016 12:35:24 +0000 (15:35 +0300)]
Check glGetString result for being null

8 years agoAdd a geometry flag to ProgramBuilder
Mikko Rasa [Sun, 16 Oct 2016 11:30:51 +0000 (14:30 +0300)]
Add a geometry flag to ProgramBuilder

It does not generate a geometry shader yet but allows one to be manually
inserted into the program.

8 years agoAdd basic support for geometry shaders
Mikko Rasa [Sun, 16 Oct 2016 08:16:38 +0000 (11:16 +0300)]
Add basic support for geometry shaders

8 years agoPerform culling in eye space and account for Renderer's matrix
Mikko Rasa [Fri, 7 Oct 2016 12:38:09 +0000 (15:38 +0300)]
Perform culling in eye space and account for Renderer's matrix

This allows container renderables to apply intermediate transforms to the
Renderer.  Sometimes it may be inconvenient to propagate every matrix
change down through the hierarchy.

8 years agoAdd a convenience method to get the aspect ratio of View
Mikko Rasa [Fri, 7 Oct 2016 12:37:39 +0000 (15:37 +0300)]
Add a convenience method to get the aspect ratio of View

8 years agoInherit View from sigc::trackable
Mikko Rasa [Fri, 7 Oct 2016 12:37:11 +0000 (15:37 +0300)]
Inherit View from sigc::trackable

It connects to the resize signal of Window.

8 years agoAdd new matrix manipulation functions to VertexBuilder
Mikko Rasa [Tue, 4 Oct 2016 08:34:44 +0000 (11:34 +0300)]
Add new matrix manipulation functions to VertexBuilder

For symmetry with Renderer.

8 years agoAdd some accessors to View
Mikko Rasa [Fri, 16 Sep 2016 23:15:20 +0000 (02:15 +0300)]
Add some accessors to View

8 years agoFix some #defines for Windows
Mikko Rasa [Fri, 16 Sep 2016 22:36:54 +0000 (01:36 +0300)]
Fix some #defines for Windows

8 years agoRequire libsigc++-2.0 since View connects to a signal
Mikko Rasa [Fri, 16 Sep 2016 22:35:56 +0000 (01:35 +0300)]
Require libsigc++-2.0 since View connects to a signal

8 years agoAdd a new View class to tie up some presentation tasks
Mikko Rasa [Thu, 15 Sep 2016 21:09:13 +0000 (00:09 +0300)]
Add a new View class to tie up some presentation tasks

8 years agoDon't attempt to create buffers by default if they are not supported
Mikko Rasa [Thu, 15 Sep 2016 14:49:15 +0000 (17:49 +0300)]
Don't attempt to create buffers by default if they are not supported

Rendering from client memory is a relic from the past but since the
change is rather trivial might as well support it.

8 years agoAlign batches at the index size
Mikko Rasa [Thu, 15 Sep 2016 14:47:27 +0000 (17:47 +0300)]
Align batches at the index size

8 years agoAdd check for more modern AMD video cards
Mikko Rasa [Thu, 15 Sep 2016 14:46:10 +0000 (17:46 +0300)]
Add check for more modern AMD video cards

They no longer have "Radeon" as part of the renderer string, at least
with the amdgpu driver.

8 years agoSupport loading uniform arrays from data files
Mikko Rasa [Mon, 12 Sep 2016 12:08:35 +0000 (15:08 +0300)]
Support loading uniform arrays from data files

8 years agoAdd aliases for uniform statements without the type suffix
Mikko Rasa [Mon, 12 Sep 2016 12:08:10 +0000 (15:08 +0300)]
Add aliases for uniform statements without the type suffix

8 years agoConsistently use the same spelling for diffuse_map and normal_map
Mikko Rasa [Sun, 11 Sep 2016 10:36:04 +0000 (13:36 +0300)]
Consistently use the same spelling for diffuse_map and normal_map

It appears that spelling them as two separate words is more correct than
a compound word.

8 years agoAccess clipping through the extension mechanism
Mikko Rasa [Thu, 1 Sep 2016 13:41:15 +0000 (16:41 +0300)]
Access clipping through the extension mechanism

It's not supported on OpenGL ES.

8 years agoUse RAII to restore the output FBO in Pipeline::render
Mikko Rasa [Fri, 26 Aug 2016 23:29:41 +0000 (02:29 +0300)]
Use RAII to restore the output FBO in Pipeline::render

8 years agoDo not attempt to unwatch a mesh that was already removed
Mikko Rasa [Fri, 26 Aug 2016 23:29:16 +0000 (02:29 +0300)]
Do not attempt to unwatch a mesh that was already removed

8 years agoNotify watchers of a resource being removed from the manager
Mikko Rasa [Fri, 26 Aug 2016 23:27:16 +0000 (02:27 +0300)]
Notify watchers of a resource being removed from the manager

Most likely this is a consequence of it being deleted.

8 years agoFix some uninitialized variables
Mikko Rasa [Fri, 26 Aug 2016 23:26:11 +0000 (02:26 +0300)]
Fix some uninitialized variables

8 years agoAdd integer overload of ProgramData::uniform1_array
Mikko Rasa [Mon, 22 Aug 2016 17:19:41 +0000 (20:19 +0300)]
Add integer overload of ProgramData::uniform1_array

8 years agoSupport custom functions in ProgramBuilder
Mikko Rasa [Mon, 22 Aug 2016 12:33:42 +0000 (15:33 +0300)]
Support custom functions in ProgramBuilder

8 years agoAdd a new API to Pipeline that ties Renderables and passes together
Mikko Rasa [Sun, 14 Aug 2016 20:29:49 +0000 (23:29 +0300)]
Add a new API to Pipeline that ties Renderables and passes together

The old API is now deprecated and will eventually go away.  There are
two reasons for this change:

1. Pipeline was a sort of pseudo-scene, and in many simple use cases it
was not clear which should be used to hold Renderables.  Scenes are
intended as grouping primitives.

2. It was possible to add multiple passes with the same tag and different
rendering state, but there was no way to add a Renderable for only one of
them.  This led to tags doubling as a way to filter different passes at
the level of individual Renderables.  The intended purpose of tags is to
select between different presentations of a Renderable.

8 years agoUnbind Clipping in Renderer::end
Mikko Rasa [Sun, 14 Aug 2016 15:24:33 +0000 (18:24 +0300)]
Unbind Clipping in Renderer::end

8 years agoFully unbind Clipping when legacy mode changes
Mikko Rasa [Sun, 14 Aug 2016 08:45:56 +0000 (11:45 +0300)]
Fully unbind Clipping when legacy mode changes

Failing to do so may leave ClipPlanes bound to ClipUnits, leading to
undesirable behaviour later on.

8 years agoRequire legacy features when binding plain clip planes
Mikko Rasa [Sat, 13 Aug 2016 15:30:27 +0000 (18:30 +0300)]
Require legacy features when binding plain clip planes

8 years agoAdd loader support for clipping in standard shaders
Mikko Rasa [Sat, 13 Aug 2016 15:29:44 +0000 (18:29 +0300)]
Add loader support for clipping in standard shaders

8 years agoBinding fixes for Clipping when mixing legacy and modern mode
Mikko Rasa [Sat, 13 Aug 2016 15:29:14 +0000 (18:29 +0300)]
Binding fixes for Clipping when mixing legacy and modern mode

8 years agoImplement the previously forgotten Clipping::unbind
Mikko Rasa [Sat, 13 Aug 2016 15:28:47 +0000 (18:28 +0300)]
Implement the previously forgotten Clipping::unbind

8 years agoSome fixes to lighting management
Mikko Rasa [Fri, 12 Aug 2016 20:39:33 +0000 (23:39 +0300)]
Some fixes to lighting management

8 years agoSupport user clip planes in generated shaders
Mikko Rasa [Fri, 12 Aug 2016 20:39:06 +0000 (23:39 +0300)]
Support user clip planes in generated shaders

8 years agoHandle clipping in Pipeline and Renderer
Mikko Rasa [Fri, 12 Aug 2016 20:38:50 +0000 (23:38 +0300)]
Handle clipping in Pipeline and Renderer

8 years agoRestore user clip planes in a form compatible with modern OpenGL
Mikko Rasa [Fri, 12 Aug 2016 20:31:47 +0000 (23:31 +0300)]
Restore user clip planes in a form compatible with modern OpenGL

They work much the same as lights, with the ability to add uniforms to a
ProgramData object.