Permalink
Browse files

add point raster context

  • Loading branch information...
1 parent 20087a1 commit d4c1d0265d4c033f5cb21410d01c103a347a7ffb @csabahruska csabahruska committed Mar 9, 2013
Showing with 15 additions and 2 deletions.
  1. +4 −0 lambdacube-core/docs/demo-ideas
  2. +11 −2 lambdacube-core/sandbox/lambdacube-unified-input/LC_T_HOAS.hs
@@ -1,2 +1,6 @@
http://reset-game.net/?p=284
http://madebyevan.com/webgl-water/
+http://prideout.net/blog/
+http://devmaster.net/posts/3100/shader-effects-glow-and-bloom
+http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/
+http://www.shadertoy.com
@@ -268,7 +268,10 @@ data Exp freq t where
-- Raster context
-- TODO:
-- add clip distance mask
- PointCtx :: Exp Obj (RasterContext Point) -- TODO: PointSize, POINT_FADE_THRESHOLD_SIZE, POINT_SPRITE_COORD_ORIGIN
+ PointCtx :: Exp Obj PointSize
+ -> Exp Obj Float
+ -> Exp Obj PointSpriteCoordOrigin
+ -> Exp Obj (RasterContext Point) -- TODO: PointSize, POINT_FADE_THRESHOLD_SIZE, POINT_SPRITE_COORD_ORIGIN
LineCtx :: Exp Obj Float -- line width
-> ProvokingVertex
@@ -284,7 +287,12 @@ data Exp freq t where
PointSize :: Exp Obj Float
-> Exp Obj PointSize
- PointSizeRast :: Exp Obj PointSize
+ ProgramPointSize :: Exp Obj PointSize
+
+ -- PointSpriteCoordOrigin
+ LowerLeft :: Exp Obj PointSpriteCoordOrigin
+
+ UpperLeft :: Exp Obj PointSpriteCoordOrigin
-- PolygonOffset
NoOffset :: Exp Obj PolygonOffset
@@ -351,6 +359,7 @@ data Exp freq t where
data Interpolated a
data PointSize
+data PointSpriteCoordOrigin
data PolygonOffset
data PolygonMode
data StencilTest

0 comments on commit d4c1d02

Please sign in to comment.